# 备份本地yun源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak
# 获取阿里yum源配置文件
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
# 更新cache
yum makecache
# 更新
yum -y update
Centos7 修改为阿里的yum源
最新推荐文章于 2024-07-03 15:48:46 发布