The Alibaba open source mirror station is used, and the file address is:
How to use https://mirrors.aliyun.com/repo/Centos-8.repo
:
cd /etc/yum.repos.d/
//移除不能用的repo
rm -f CentOS-Base.repo CentOS-AppStream.repo CentOS-PowerTools.repo CentOS-centosplus.repo CentOS-Extras.repo
//Download the latest repo
curl -o CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
//Rebuild the cache
yum makecache