下载 repo
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
替换 repo
cd /etc/yum.repos.d/ mv CentOS-Base.repo CentOS-Base.repo.bak mv CentOS6-Base-163.repo CentOS-Base.repo
更新 cache
yum clean all yum makecache
Verify
[root@localhost tmp]# yum repolist Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile repo id repo name status base CentOS-6 - Base - 163.com 6,367 extras CentOS-6 - Extras - 163.com 14 updates CentOS-6 - Updates - 163.com 463 repolist: 6,844
本文出自 “麦田里” 博客,请务必保留此出处http://maitianli.blog.51cto.com/8538087/1357070
原文:http://maitianli.blog.51cto.com/8538087/1357070