您的位置:首页 > 运维架构 > Linux

CentOS 添加163源

2010-09-29 14:37 183 查看
以超级用户登路

先关闭fastestmirror

#“vi /etc/yum/pluginconf.d/fastestmirror.conf” and set “enable=0″

#cd /etc/yum.repos.d/

#wget http://mirrors.163.com/.help/CentOS-Base-163.repo
#wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo //sohu的源

#yum list

查看一下是否成功。

此时会有如下提示:

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository addons is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

解决方法:修改原来的CentOS-Base.repo名就可以了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  职场 休闲 centos 163源