- 备份
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