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.repo cp CentOS-Base-163.repo /etc/yum.repos.d yum clean all yum makecache
验证:
yum repolist # repo name # CentOS-6 -Base - 163.com
时间: 2024-10-16 02:09:28