CentOS 7.8 yum update 更新,报 404
-
mkdir ~/bak/ cp -r /etc/yum.repos.d/* ~/bak/ # https://mirrors.tuna.tsinghua.edu.cn/centos-vault/7.8.2003/ cd /etc/yum.repos.d minorver=7.8.2003 sudo sed -e "s|^mirrorlist=|#mirrorlist=|g" \ -e "s|^#baseurl=http://mirror.centos.org/centos/\$releasever|baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/$minorver|g" \ -i.bak \ /etc/yum.repos.d/CentOS-*.repo yum makecache