Help Articles
search
CentOS One-click operating system switch YUM source (Tencent Cloud YUM)
Category: Linux system related
author: Tom
Time: 2025-06-20
Read: 54

One-click configuration (please clean up the residual configuration in the /etc/yum.repos.d/ directory before operation)

CentOS 7 command:
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.tencent.com/repo/centos7_base.repo

CentOS 8 Use the command: 

curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.tencent.com/repo/centos8_base.repo
CentOS 8-Stream use command:
 
 curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.tencent.com/repo/centos8-stream.repo

After executing the command, you can execute

yum update -y
上一篇:What is CN2 network? A detailed introduction to CN2 network!
下一篇:Is port 25 banned on Hong Kong servers?
Customer Service
Pre sales consultation
在线客服
after-sale service
24/7 operation and maintenance
运维客服
Feedback
Complaints and Suggestions
投诉与建议
置顶