上一篇 下一篇 分享链接 返回 返回顶部

CentOS 7 修改yum源为阿里源

发布人:澳速云客服 发布时间:2024-07-05 19:05 阅读量:679

1.安装Wget

yum -y install wget

2.备份本地yum源

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

3.获取阿里yum源配置文件

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

4.更新yum缓存

yum makecache

然后就可以了

目录结构
全文
客服微信 客服微信
QQ售后群 QQ售后群
电子邮箱: aosuyun@aosuyun.email