第一步:备份原镜像文件
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
第二步:下载新的CentOS-Base.repo到/etc/yum.repos.d/
国内: wget -O /etc/yum.repos.d/CentOS-Base.repo https://www.shnne.com/zb_users/upload/yum/Centos-6-Vault-Aliyun.repo 海外: wget -O /etc/yum.repos.d/CentOS-Base.repo https://www.shnne.com/zb_users/upload/yum/Centos-6-Vault-Official.repo
第三步:运行yum makecache生成缓存
yum clean all yum makecache