2.选择需要的版本源,查看最后的帮助
3.下载帮助里对应版本的repo文件
4.将此文件cp或mv到/etc/yum.repos.d/CentOS-Base.repo ,可前将原来的备份
5.yum clean all
yum makecache
搞定
2.选择需要的版本源,查看最后的帮助
3.下载帮助里对应版本的repo文件
4.将此文件cp或mv到/etc/yum.repos.d/CentOS-Base.repo ,可前将原来的备份
5.yum clean all
yum makecache
搞定