更新日期:Sat Jun 15 2024 13:12:16 GMT+0800,阅读量:
请访问原文链接:Rocky Linux yum/dnf repo/mirrors 国内镜像列表及更换方法 查看最新版。原创作品,转载请保留出处。
作者主页:sysin.org
高校镜像推荐 mirror.sjtu.edu.cn 和 mirrors.zju.edu.cn。
商业公司镜像推荐 mirrors.aliyun.com。
其他多数镜像不全,要么没有 almalinux,要么没有 rocky。
当然可以根据个人喜好、地理位置、访问体验等因素来选择。
AlmaLinux
该项配置方法兼容 AlmaLinux 8 和 9。
AlmaLinux 9 默认 repo 如下:
1 | [root@localhost ~]# dnf repolist |
官方镜像列表
官方列表:https://mirrors.almalinux.org/,CN 开头的站点。
例如:
Name | Sponsor | Status | Continent | Region | FTP | HTTP | HTTPS | RSYNC | IPv6 |
---|---|---|---|---|---|---|---|---|---|
mirrors.aliyun.com | Alibaba Cloud Computing Co.,Ltd. | ok | Asia | CN | Mirror | Mirror | ✓ | ||
mirror.sjtu.edu.cn | Shanghai Jiao Tong University Network Information Center | expired | AS | CN | Mirror | ✓ |
基本系统
AlmaLinux 国内镜像源更换方法如下。
阿里云示例(本次模板使用):
1 | 配置 |
上海交通大学示例(mirror 没有 s):
mirror.sjtu.edu.cn
= mirrors.sjtug.sjtu.edu.cn
1 | 配置 |
更换其他镜像,对应按照上面替换 Mirror Name 即可。
例如:
EPEL
若安装了 epel,同时修改如下:
阿里云 epel 示例:
1 | sed -e 's|^metalink=|#metalink=|g' \ |
上海交通大学 epel 示例:
1 | 注意 (sysin):上海交通大学地址多一个 fedora |
其他替换地址如:
- mirrors.zju.edu.cn
- mirrors.nju.edu.cn(无 rocky)
- mirrors.ustc.edu.cn(无 almalinux)
清理并重新生成软件包信息缓存
1 | 备注:yum=dnf |
相关产品:
- AlmaLinux 9.4 正式版发布 - RHEL 二进制兼容免费发行版
- AlmaLinux 9 x86_64 OVF (sysin) - VMware 虚拟机模板
- AlmaLinux 9 aarch64 OVF (sysin) - Apple silicon VMware 虚拟机模板
- AlmaLinux 8.10 - RHEL 下游免费发行版(CentOS 稳定版的替代品)
- AlmaLinux 8.10 x86_64 OVF (sysin) - VMware 虚拟机模板
文章用于推荐和分享优秀的软件产品及其相关技术,所有软件默认提供官方原版(免费版或试用版),免费分享。对于部分产品笔者加入了自己的理解和分析,方便学习和研究使用。任何内容若侵犯了您的版权,请联系作者删除。如果您喜欢这篇文章或者觉得它对您有所帮助,或者发现有不当之处,欢迎您发表评论,也欢迎您分享这个网站,或者赞赏一下作者,谢谢!
赞赏一下
☑️ 评论恢复,欢迎留言❗️敬请注册!点击 “登录” - “用户注册”(已知不支持 21.cn/189.cn 邮箱)。请勿使用联合登录(已关闭)。