CentOS7换源

1. 备份源

[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# mv ./CentOS-Base.repo ./CentOS-Base.repo.bak

2. 下载网易163源

wget http://mirrors.163.com/.help/CentOS7-Base-163.repo

3. 清除旧包

yum clean all

你可能感兴趣的:(Linux运维,运维)