首页 > 代码库 > Centos修改yum源为163

Centos修改yum源为163

1.首先备份/etc/yum.repos.d/CentOS-Base.repo

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

2.下载163repo文件(地址根据centos版本而定)

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

3.刷新缓存

yum clean all
yum makecache

 

 

参考: http://mirrors.163.com/.help/centos.html

Centos修改yum源为163