幫助文章
搜尋
CentOS 一鍵切換 YUM 來源(騰訊雲YUM)
類別: Linux系統相關
作者: Tom
時間: 2025-06-20
閱讀量: 56

一鍵配置(操作前請清理 /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
上一篇:CN2網路是什麼? CN2網路超詳細介紹!
下一篇:香港伺服器禁25埠嗎?
客服諮詢
售前諮詢
在线客服
售後服務
全天候運維
运维客服
意見回饋
投訴與建議
投诉与建议
置顶