使用163的源: 1)备份旧的源: mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup2)下载对应版本的源文件: centOS7: _# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo centOS6: _# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo centOS5: _# wget http://mirrors.163.com/.help/CentOS5-Base-163.repo 3)重命名为centOS-Base.repo: mv CentOSx-Base-163.repo CentOS-Base.repo //这里的x是上面的版本号 4)更新: yum clean all yum makecache参考地址:CentOS镜像使用帮助 centOS6: _# http://mirrors.163.com/.help/CentOS6-Base-163.repo (责任编辑:IT) |