首页 > 技术文章 > 配置阿里云yum源

YingLai 2020-06-30 17:31 原文

安装Basel repo源

1 cd /etc/yum.repos.d/
1 wget http://mirrors.aliyun.com/repo/Centos-7.repo

备份系统原来的repo文件

mv CentOs-Base.repo CentOs-Base.repo.bak

将下载的repo源,从命令

mv Centos-7.repo CentOs-Base.repo
清理缓存
yum clean all
重新生成缓存
yum makecache
升级yum源
yum uptade

 

推荐阅读