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/centos-vault/|' \
- -e 's|baseurl=.*$stream|baseurl=https://vault.centos.org/centos-vault/centos/$stream|g' \
- /etc/yum.repos.d/CentOS-*.repo
-
复制代码
Centos 8 Stream更换vault清华大学国内源(使用HTTP)
- sed -i -e 's|^mirrorlist=|#mirrorlist=|' \
- -e 's|^#baseurl=|baseurl=|' \
- -e 's|http://mirror.centos.org|http://mirrors.tuna.tsinghua.edu.cn/centos-vault/|' \
- -e 's|baseurl=.*$stream|baseurl=http://mirrors.tuna.tsinghua.edu.cn/centos-vault/centos/$stream|g' \
- /etc/yum.repos.d/CentOS-*.repo
-
复制代码
Centos 8 Stream更换vault清华大学国内源(使用HTTPS)
- 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
-
复制代码
|
|