修改CentOS 8 yum源
进入/etc/yum.repos.d/文件夹,查看所有文件
powershell
cd /etc/yum.repos.d/
ll

删除所有文件
powershell
rm -f *.repo
ls

下载阿里yum源文件
powershell
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo

更新yum缓存
powershell
yum clean all
yum makecache

测试yum能否正常运行
powershell
yum list

能列出所有安装包即可