分享一个Centos8的国内yum镜像源-阿里巴巴开源镜像站

使用的是阿里巴巴开源镜像站,文件地址:

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

//下载最新的repo
curl -o CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo

//重建缓存
yum makecache

 

猜你喜欢

转载自blog.csdn.net/happyzhlb/article/details/123404805