centos7 yum 源失效

centos7 yum 源已经失效, 可以通过下面指令更换默认配置, baseurl中 mirror.* 替换为 vault*

sed -i -e '/^mirrorlist/d;/^#baseurl=/{s,^#,,;s,/mirror,/vault,;}' /etc/yum.repos.d/CentOS*.repo
yum update -y

https://jms1.info/linux/centos7-vault.html

Comments are closed.