CentOS 添加163源

  以超級用戶登路 

先關閉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名就可以了。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章