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
2022-04-03 02:45:25
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
下一篇:Linux修改时区设置