今天给Redhat6更换yum源折腾了半个小时,最后去阿里云官网找到了答案,记录一下。
有小伙伴更换的话记得备份yum源和yum clean all && yum makecache
1、备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、更换centos6yum源(centos6官方源已下线,建议切换centos-vault源)
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo
3、yum clean all && yum makecache
yum clean all && yum makecache
附备用下载:
https://www.letvps.com/2847.html/1649749175-centos-vault-6-10-repo
文章评论