查看版本
cat /etc/redhat-release |
修改源
阿里
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup |
清华
# 对于 CentOS 7 |
更新软件源缓存
yum makecache |
cat /etc/redhat-release |
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup |
# 对于 CentOS 7 |
yum makecache |