【笔记】更换 CentOS Linux 更新源
前言
更换CentOS Linux
更新源,系统版本7
换源
- 备份系统自带yum源配置文件
1 | mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup |
- 下载
阿里
的yum源配置文件
1 | wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo |
- 下载
网易
的yum源配置文件(可选)
1 | cd /etc/yum.repos.d/ |
- 生成缓存
1 | yum clean all |
- 更新
1 | yum -y update |