配置CentOS yum源

1、進入yum源配置目錄

cd /etc/yum.repos.d

2、備份系統自帶的yum源

mv CentOS-Base.repo CentOS-Base.repo.bk


3、下載163網易的yum源:

wget 
http://mirrors.163.com/.help/CentOS6-Base-163.repo


4、更新yum源後,執行下邊命令更新yum配置,使操作立即生效

yum makecache


5、阿里源

http://mirrors.aliyun.com/repo/Centos-6.repo

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章