Rocky Linux yum/dnf Repo 国内镜像

Posted by sysin on 2021-06-22
Estimated Reading Time 2 Minutes
Words 466 In Total
Viewed Times

点击访问腾讯云官方网站


请访问原文链接:Rocky Linux yum/dnf Repo 国内镜像,查看最新版。原创作品,转载请保留出处。

作者:gc(at)sysin.org,主页:www.sysin.org

上海交通大学示例:

1
2
3
4
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.sjtug.sjtu.edu.cn/rocky|g' \
-i.bak \
/etc/yum.repos.d/Rocky-*.repo

更换其他镜像,对应按照上面替换 Mirror Name 即可,注意路径“/rocky”。

阿里云示例:

1
2
3
4
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.aliyun.com/rockylinux|g' \
-i.bak \
/etc/yum.repos.d/Rocky-*.repo

官方列表:https://mirror.rockylinux.org/mirrormanager/mirrors

CN 开头的站点

Country Site Name Mirror Name Categories Bandwidth Internet2 Comment
CN EuropeJing mirrors.europejing.com Rocky Linux: http 300 No Personal network, located in Guangdong, mirrors rocky-production every day at 3:00
CN eScience Center, Nanjing University mirrors.nju.edu.cn Rocky Linux: http | https | rsync 10000 No
CN SDU-Mirrors mirrors.sdu.edu.cn Rocky Linux: https 1000 No Located in Qingdao, Shandong, China. Shandong University, China. Sync from official Master. Sync once a day for now.
CN SJTUG mirrors.sjtug.sjtu.edu.cn Rocky Linux: https | rsync 1000 No Hosted by Shanghai Jiao Tong University Linux User Group. Server Location: Shanghai, China. For downstream mirror maintainers, please email [email protected] for request before rsync from us.
CN SKYSHE mirrors.skyshe.cn Rocky Linux: https | http 1000 Yes Personal network, Sync from official Master. Sync once a day for now.

Rocky Linux 8.5 发布时,有所变改

Country Site Name Mirror Name Categories Bandwidth Internet2 Comment
CN Aliyun Open Source Mirrors Aliyun Open Source Mirrors Rocky Linux: https | http 10000 No Syncs every two hours
CN SJTUG mirrors.sjtug.sjtu.edu.cn Rocky Linux: https | rsync 1000 No Hosted by Shanghai Jiao Tong University Linux User Group. Server Location: Shanghai, China. For downstream mirror maintainers, please email [email protected] for request before rsync from us.

若安装了 epel,同时修改如下:

1
2
3
4
5
6
7
sed -e 's|^metalink=|#metalink=|g' \
-e 's|^#baseurl=https://download.example/pub|baseurl=https://mirrors.aliyun.com|g' \
-i.bak \
/etc/yum.repos.d/epel*.repo
# 注意:
# Rocky Linux 中 #baseurl=https://download.example/pub
# 与 CentOS 相同,而 Alma Linux #baseurl=https://download.fedoraproject.org/pub

清理并重新生成软件包信息缓存:

1
2
3
4
yum clean all
yum autoremove
rm -rf /var/cache/yum
yum makecache

捐助本站 ❤️ Donate


如果文章中使用的内容或图片侵犯了您的版权,请联系作者删除。如果您喜欢这篇文章或者觉得它对您有所帮助,欢迎您发表评论,也欢迎您分享这个网站,或者赞赏一下作者,谢谢!


支付宝打赏 微信打赏

赞赏一下



1000000