一键配置(操作前请清理 /etc/yum.repos.d/ 目录下的残留配置)
CentOS 7 使用命令:
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.tencent.com/repo/centos7_base.repo
CentOS 8 使用命令:
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.tencent.com/repo/centos8_base.repo
CentOS 8-Stream 使用命令:
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.tencent.com/repo/centos8-stream.repo
执行完命令之后,可以执行
yum update -y