关于阿里云:阿里云Epel镜像的安装方法

6次阅读

共计 654 个字符,预计需要花费 2 分钟才能阅读完成。

 阿里云官网镜像站:阿里巴巴开源镜像站 -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*

\

正文完
 0