標籤:
1. Centos配置國內yum源 http://blog.chinaunix.net/uid-23683795-id-3477603.html
網易(163)yum源是國內最好的yum源之一 ,無論是速度還是軟體版本,都非常的不錯,將yum源設定為163yum,可以提升軟體包安裝和更新的速度,同時避免一些常見軟體版本無法找到。具體設定方法如下:
1.1,進入yum源配置目錄
cd /etc/yum.repos.d
1.2,備份系統內建的yum源
mv CentOS-Base.repo CentOS-Base.repo.bk
下載163網易的yum源:
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
1.3,更新玩yum源後,執行下邊命令更新yum配置,使操作立即生效
yum makecache
1.4,除了網易之外,國內還有其他不錯的yum源,比如中科大和搜狐的,大家可以根據自己需求下載
中科大的yum源:
wget http://centos.ustc.edu.cn/CentOS-Base.repo
sohu的yum源
wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
理論上講,這些yum源redhat系統以及fedora也是可以用 的,但是沒有經過測試,需要的站長可以自己測試一下。
2. CentOS6.4配置163的yum源 http://my.oschina.net/1462469/blog/305411
2.1.下載repo檔案 wget http://mirrors.163.com/.help/CentOS6-Base-163.repo2.2.備份並替換系統的repo檔案 [[email protected] ~] # cd /etc/yum.repos.d/
[[email protected] ~] # mv CentOS-Base.repo CentOS-Base.repo.bak[[email protected] ~] # mv CentOS6-Base-163.repo CentOS-Base.repo2.3.執行yum源更新 [[email protected] ~] # yum clean all
[[email protected] ~] # yum makecache
[[email protected] ~] # yum update
Centos配置國內yum源