备份本地yum源:
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak;
下载阿里云yum源
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo;
更新cache
yum makecache;
查看更新
yum -y update;
本文共 272 字,大约阅读时间需要 1 分钟。
备份本地yum源:
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak;
下载阿里云yum源
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo;
更新cache
yum makecache;
查看更新
yum -y update;
转载于:https://blog.51cto.com/11726705/2346891