使用的是阿里巴巴开源镜像站,文件地址:
https://mirrors.aliyun.com/repo/Centos-8.repo
使用方方法: 先对源文件进行备份
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/default_CentOS-Base.repo curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repoyum makecache