一鍵配置(操作前請清理 /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