- 备份
mv /etc/yum.repos.d/CentOS-base.repo /etc/yum.repos.d/CentOS-base.repo.backup下载
wget -O /etc/yum.repos.d/CentOS-base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo生成缓存
yum makecache
以上是centos8的切换方式,如需其他版本,看官网
https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.3e221b11ON0Hhn



