CentOS更换YUM源

2019-11-01 09:19:03 4421

Centos更换yum下载源方法


Centos 5-6-7更换源版本号后下载即可

rm -rf /etc/yum.repos.d/Centos-Base.repo

curl -o /etc/yum.repos.d/CentOS-Base.repo http://www.landui.com/repo/Centos-7.repo

yum makecache



Centos 8

rm -f /etc/yum.repos.d/CentOS-Base.repo CentOS-AppStream.repo CentOS-PowerTools.repo CentOS-centosplus.repo CentOS-Extras.repo 

curl -o CentOS-Base.repo https://www.landui.com/hackyoMa/docker-centos/8/CentOS-Base.repo

yum makecache


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: