1, 进入目录:cd /etc/yum.repos.d
2,备份旧库:mv CentOS-Base.repo CentOS-Base.repo.bak
3,下载新库:wget http://mirrors.163.com/.help/CentOS-Base-163.repo
4,更新库:yum makecache.
1, 进入目录:cd /etc/yum.repos.d
2,备份旧库:mv CentOS-Base.repo CentOS-Base.repo.bak
3,下载新库:wget http://mirrors.163.com/.help/CentOS-Base-163.repo
4,更新库:yum makecache.