首页 » Linux » Configure » Linux换源-Centos

Linux换源-Centos

 

Centos:

1:下载对应版本repo文件, 放入/etc/yum.repos.d/(操作前请做好相应备份)

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

Centos6:http://mirrors.163.com/.help/CentOS6-Base-163.repo

Centos5:http://mirrors.163.com/.help/CentOS5-Base-163.repo

2:备份/etc/yum.repos.d/CentOS-Base.repo

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
3:运行以下命令生成缓存
yum clean all
yum makecache


note:
help:http://mirrors.163.com/.help/centos.html

–ituse.cn-小小IT人遨游大大IT界

原文链接:Linux换源-Centos,转载请注明来源!

0