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