Centos8的国内yum源
使用的是清华大学开源镜像站,文件地址:
https://github.com/hackyoMa/docker-centos/blob/8/CentOS-Base.repo
使用方法:
cd /etc/yum.repos.d/ #进入源目录
cp 省略 #将原有文件备份为.bak文件
rm -f CentOS-Base.repo CentOS-AppStream.repo CentOS-PowerTools.repo CentOS-centosplus.repo CentOS-Extras.repo #删除原文件
curl -o CentOS-Base.repo https://raw.githubusercontent.com/hackyoMa/docker-centos/8/CentOS-Base.repo #下载新的源文件
yum makecache #更新元数据缓存