1、国内各大yum源
阿里源
https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.3e221b11G5ZGvj
2、备份本机yum源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
3、替换源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
4、清理并生成缓存
yum clean all && yum makecache
具体可以参考阿里源官方文档配置
标签:Base,CentOS,repos,repo,etc,阿里,yum,更换,centos8 From: https://www.cnblogs.com/fireblackman/p/16818424.html