Centos7更换centos-vault源
Centos7更换centos-vault海外官方源sed -i -e 's|^mirrorlist=|#mirrorlist=|' \
-e 's|^#baseurl=|baseurl=|' \
-e 's|http://mirror.centos.org|https://vault.centos.org|' \
-e 's|baseurl=.*$releasever|baseurl=http://vault.centos.org/centos/$releasever|g' \
/etc/yum.repos.d/CentOS-*.repo
Centos7更换vault华为云国内源
sed -i -e 's|^mirrorlist=|#mirrorlist=|' \
-e 's|^#baseurl=|baseurl=|' \
-e 's|http://mirror.centos.org|https://vault.centos.org|' \
-e 's|baseurl=.*$releasever|baseurl=https://mirrors.huaweicloud.com/centos-vault/centos/$releasever|g' \
/etc/yum.repos.d/CentOS-*.repo
Centos7更换vault清华大学国内源
sed -i -e 's|^mirrorlist=|#mirrorlist=|' \
-e 's|^#baseurl=|baseurl=|' \
-e 's|http://mirror.centos.org|https://vault.centos.org|' \
-e 's|baseurl=.*$releasever|baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/centos/$releasever|g' \
/etc/yum.repos.d/CentOS-*.repo
页:
[1]