简介
EPEL (Extra Packages for Enterprise Linux), 是由 Fedora Special Interest Group 维护的 Enterprise Linux(RHEL、CentOS)中经常用到的包。
下载地址:
- 火山引擎访问地址:https://mirrors.ivolces.com/epel/
- 公网访问地址:https://mirrors.volces.com/epel/
配置方法
1,备份
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
CentOS 5
wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-5 http://mirrors.ivolces.com/epel/RPM-GPG-KEY-EPEL-5
wget -O /etc/yum.repos.d/epel.repo http://mirrors.ivolces.com/repo/epel-5.repo
CentOS 6
wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 http://mirrors.ivolces.com/epel/RPM-GPG-KEY-EPEL-6
wget -O /etc/yum.repos.d/epel.repo http://mirrors.ivolces.com/repo/epel-6.repo
CentOS 7
wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 http://mirrors.ivolces.com/epel/RPM-GPG-KEY-EPEL-7
wget -O /etc/yum.repos.d/epel.repo http://mirrors.ivolces.com/repo/epel-7.repo
CentOS 8
yum install -y https://mirrors.ivolces.com/epel/epel-release-latest-8.noarch.rpm
wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 http://mirrors.ivolces.com/epel/RPM-GPG-KEY-EPEL-8
#sed -i 's|^#baseurl=https://download.fedoraproject.org/pub|baseurl=https://mirrors.ivolces.com |' /etc/yum.repos.d/epel*
sed -i 's|^#baseurl=https://download.example/pub|baseurl=https://mirrors.ivolces.com|' /etc/yum.repos.d/epel*
sed -i 's|^metalink|#metalink|' /etc/yum.repos.d/epel*