centos7如何更换网易的yum源
时间: 2023-10-10 19:12:38 浏览: 76
以下是在CentOS 7中更换为网易yum源的步骤:
1.备份原有yum源
```
sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
```
2.下载网易yum源
```
sudo wget http://mirrors.163.com/.help/CentOS7-Base-163.repo -O /etc/yum.repos.d/CentOS-Base.repo
```
3.清除缓存
```
sudo yum clean all
```
4.生成缓存
```
sudo yum makecache
```
至此,你已经成功更换为网易yum源了。
阅读全文