centos8更换aliyun安装源

cd /etc/yum.repos.d/
mkdir old
mv CentOS-* old

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo


yum -y clean all   //清除所有文件
yum -y makecache   //建立缓存

yum repolist  //查看yum仓库信息

评论

暂无评论