1.获得新的repo列表文件
http://mirrors.163.com/.help/centos.html
2.备份
mv /etc/yum.repos.d/CentOS-Base.repo CentOS-Base.repo.bak
3.运行yum makecache生成缓存