阿里云CentOS-yum源问题

备份

1
cd /etc/yum.repos.d/
1
mkdir /home/yum.repos.d
1
cp * /home/yum.repos.d/
1
ll /home/yum.repos.d/

清空yum 源配置文件

1
rm -rf /etc/yum.repos.d/*

下载新的阿里云镜像源

1
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.rep

生成缓存

1
yum makecache