Centos 8 Stream更换centos-vault源
Centos 8 Stream更换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=.*$stream|baseurl=https://vault.centos.org/centos/$stream|g' \
/etc/yum.repos.d/CentOS-*.repo
Centos 8 Stream更换vault华为云国内源
sed -i -e 's|^mirrorlist=|#mirrorlist=|' \
-e 's|^#baseurl=|baseurl=|' \
-e 's|http://mirror.centos.org|https://mirrors.huaweicloud.com/centos-vault/|' \
-e 's|baseurl=.*$stream|baseurl=https://mirrors.huaweicloud.com/centos-vault/centos/$stream|g' \
/etc/yum.repos.d/CentOS-*.repo
Centos 8 Stream更换vault清华大学国内源
sed -i -e 's|^mirrorlist=|#mirrorlist=|' \
-e 's|^#baseurl=|baseurl=|' \
-e 's|http://mirror.centos.org|https://mirrors.tuna.tsinghua.edu.cn/centos-vault/|' \
-e 's|baseurl=.*$stream|baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/centos/$stream|g' \
/etc/yum.repos.d/CentOS-*.repo
证书错误怎么解决:
yum update curl
yum install ca-certificates
页:
[1]