1.CentOS7下更换yum为阿里下载源
2019-12-25 09:07 卪灬Kung 阅读(450) 评论(0) 收藏 举报1.备份原镜像文件
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2.下载新的CentOS源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
*若系统是最小化安装时会提示没有wget需安装wget
yum -y install wget
3.生成缓存
yum makecache
浙公网安备 33010602011771号