Blue Flower

上海交通大学示例:

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/[Rr]ocky*.repo

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

阿里云示例:

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/[Rr]ocky*.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
# 注意 (sysin):
# Rocky Linux 中 #baseurl=https://download.example/pub
# 与 CentOS 相同,而 AlmaLinux #baseurl=https://download.fedoraproject.org/pub

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

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

下载仅供下载体验和测试学习,不得商用和正当使用。

下载体验

请输入密码查看内容!

如何获取密码?

 

点击下载