首页 > 其他 > 详细

CentOS7更换yum为阿里源

时间:2020-04-30 12:15:49      阅读:66      评论:0      收藏:0      [点我收藏+]

备份本地源

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak

获取阿里源配置文件

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

更新epel仓库

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

更新cache

yum makecache

CentOS7更换yum为阿里源

原文:https://www.cnblogs.com/treasury/p/12807984.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!