一切平、切換更新前先備份執(zhí)行
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
二头谜、下載新的 CentOS-Base.repo 到 /etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
三私爷、運(yùn)行yum makecache生成緩存
yum makecache
四煞聪、yum更新
yum update