#备份原有文件
[root@zk1 /]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
#跳过检查证书,从https://www.xmpan.com/Centos-6-Vault-Aliyun.repo下载源
[root@zk1 /]# wget --no-check-certificate /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
[root@zk1 /]# yum clean all
Loaded plugins: refresh-packagekit Cleaning up Everything
[root@zk1 /]# yum makecache
Loaded plugins: refresh-packagekit Metadata Cache Created [root@zk1 /]#
标签:root,repos,repo,centos6,Base,yum,更换,zk1 From: https://www.cnblogs.com/yappleorange/p/17295802.html