阿里云官方镜像站:阿里巴巴开源镜像站-OPSX镜像站-阿里云开发者社区
Epel 镜像
简介
EPEL (Extra Packages for Enterprise Linux), 是由 Fedora Special Interest Group 维护的 Enterprise Linux(RHEL、CentOS)中经常用到的包。
下载地址:阿里云开源镜像站资源目录
epel镜像-epel下载地址-epel安装教程-阿里巴巴开源镜像站
配置方法
1. 备份(如有配置其他epel源)
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
mv /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel-testing.repo.backup
2. 下载新repo 到/etc/yum.repos.d/
安装 epel 配置包
yum install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm

将 repo 配置中的地址替换为阿里云镜像站地址
sed -i 's|^#baseurl=https://download.example/pub|baseurl=https://mirrors.aliyun.com|' /etc/yum.repos.d/epel*
sed -i 's|^metalink|#metalink|' /etc/yum.repos.d/epel*

本文介绍了如何通过阿里云开源镜像站便捷地下载和配置EPEL(Extra Packages for Enterprise Linux)源。EPEL是Fedora团队维护的RHEL和CentOS等企业级Linux系统的额外软件包仓库。首先,文章建议备份现有的epel.repo文件,然后下载阿里云提供的epel-release-latest-8.noarch.rpm包进行安装。接着,使用sed命令替换repo配置文件中的下载地址为阿里云镜像站的URL,从而完成EPEL源的配置。这种方法能够提高软件包的下载速度和稳定性。
346

被折叠的 条评论
为什么被折叠?



