VMware版本号:12.0.0CentOS版本:7.01.更换前确保安装wget[root@localhost~]#yumlistwgetisnotinstalled:[root@localhost~]#yum-yinstallwget二、先备份/etc/yum.repos.d/CentOS-Base.repo[root@localhost~]#cp/etc/yum.repos.d/CentOS-Base.repo/etc/yum.回购。d/CentOS-Base.repo.backup3.进入yum源配置文件所在文件夹[root@localhostyum.repos.d]#cd/etc/yum.repos.d/4.下载163yum源配置文件,放入/etc/yum.repos.d/(运行前做好相应的备份)[root@localhostyum.repos.d]#wgethttp://mirrors.163.com/.help/CentOS6-Base-163。repo5.运行yummakecache生成缓存[root@localhostyum.repos.d]#yummakecache6.运行yummakecache生成缓存[root@localhostyum.repos.d]#yum-yupdate
