首页 > 云计算 > 虚拟化 > linux CentOS更换 ali YUM源
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://mirrors.aliyun.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://raw.githubusercontent.com/hackyoMa/docker-centos/8/CentOS-Base.repo
yum makecache
文章转自 西昆云
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69957453/viewspace-2757225/ ,如需转载,请注明出处,否则将追究法律责任。