Linux 修改yum源为国内镜像

时间:2021-05-07 10:20:18   收藏:0   阅读:21

centos7 修改yum源为阿里源

# 备份旧配置信息
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 https://mirrors.aliyun.com/repo/Centos-7.repo

# 更新yum源
yum makecache
yum repolist

技术分享图片

原文:https://www.cnblogs.com/sivanchan/p/14737510.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!