首页 > 代码库 > 如何更换centos6源

如何更换centos6源

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

2.根据教程:http://mirrors.163.com/.help/centos.html操作

rm /etc/yum.repos.d/CentOS-Base.repocp CentOS-Base-163.repo /etc/yum.repos.dyum clean allyum makecache

验证:

yum repolist# repo name# CentOS-6 -Base - 163.com

如何更换centos6源