CentOS更换网易、阿里源

2012-7-19 foooy linux

1、下载新源及将本地源备份
cd /etc/yum.repos.d/
(网易源)
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
mv CentOS-Base.repo CentOS-Base.repo.bak
mv CentOS6-Base-163.repo CentOS-Base.repo
(阿里源)
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

 

2、yum源更新
 yum clean all && yum makecache

 

标签: linux centos yum

评论(1) 浏览(926)

Powered by emlog 鄂ICP备14000186号-1 sitemap