下载163yum源的repobash
cd /tmp wget http://mirrors.163.com/.help/CentOS6-Base-163.repotihua
替换repoide
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repo.d/CentOS-Base.repo.bak mv /tmp/CentOS6-Base-163.repo /etc/yum.repo.d/CentOS6-Base.repogeng
更新cache
spa
yum clean all yum makecache
验证一下
get
yum repolist
返回结果
it
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 829 repolist: 7,210