< 返回

【CentOS】如何更换YUM源

2023-11-22 15:41 作者:信速云官方 阅读量:303

【CentOS 7】

  1. curl -o /etc/yum.repos.d/CentOS-Base.repo https://oss.jinghanyun.com/centos/7/CentOS-Base.repo
  2. curl -o /etc/yum.repos.d/epel.repo https://oss.jinghanyun.com/centos/7/epel.repo
  3. yum clean all
  4. yum makecache

 

【CentOS 8 Stream】

curl -o /etc/yum.repos.d/CentOS-Stream-AppStream.repo https://mirrors.aliyun.com/repo/centos-stream/8/CentOS-Stream-AppStream.repo

curl -o /etc/yum.repos.d/CentOS-Stream-BaseOS.repo https://mirrors.aliyun.com/repo/centos-stream/8/CentOS-Stream-BaseOS.repo

curl -o /etc/yum.repos.d/CentOS-Stream-Debuginfo.repo https://mirrors.aliyun.com/repo/centos-stream/8/CentOS-Stream-Debuginfo.repo

curl -o /etc/yum.repos.d/CentOS-Stream-Extras-common.repo https://mirrors.aliyun.com/repo/centos-stream/8/CentOS-Stream-Extras-common.repo

curl -o /etc/yum.repos.d/CentOS-Stream-Extras.repo https://mirrors.aliyun.com/repo/centos-stream/8/CentOS-Stream-Extras.repo

curl -o /etc/yum.repos.d/CentOS-Stream-HighAvailability.repo https://mirrors.aliyun.com/repo/centos-stream/8/CentOS-Stream-HighAvailability.repo

curl -o /etc/yum.repos.d/CentOS-Stream-Media.repo https://mirrors.aliyun.com/repo/centos-stream/8/CentOS-Stream-Media.repo

curl -o /etc/yum.repos.d/CentOS-Stream-NFV.repo https://mirrors.aliyun.com/repo/centos-stream/8/CentOS-Stream-NFV.repo

curl -o /etc/yum.repos.d/CentOS-Stream-PowerTools.repo https://mirrors.aliyun.com/repo/centos-stream/8/CentOS-Stream-PowerTools.repo

curl -o /etc/yum.repos.d/CentOS-Stream-RealTime.repo https://mirrors.aliyun.com/repo/centos-stream/8/CentOS-Stream-RealTime.repo

curl -o /etc/yum.repos.d/CentOS-Stream-ResilientStorage.repo https://mirrors.aliyun.com/repo/centos-stream/8/CentOS-Stream-ResilientStorage.repo

curl -o /etc/yum.repos.d/CentOS-Stream-Sources.repo https://mirrors.aliyun.com/repo/centos-stream/8/CentOS-Stream-Sources.repo

yum clean all

yum makecache

  • 上一篇:没有了
  • 下一篇:没有了
联系我们
返回顶部