Centos7 wget 更换阿里源
- 安装wget
-
yum install -y wget
-
- 备份之前的源
-
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
-
- 下载阿里源
-
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
-
- 清理缓存
-
yum clean all
-
- 刷新缓存
-
yum makecache
-
- 更新最新源设置
-
yum update -y
-
本文来自博客园,作者:手可摘星辰/*,转载请注明原文链接:https://www.cnblogs.com/u-damowang1/p/13646520.html