EPEL (Extra Packages for Enterprise Linux)

EPEL (Extra Packages for Enterprise Linux) is a program in Enterprise Linux (RHEL, CentOS) maintained by Fedora Special Interest Group. commonly used packages.

The following takes CentOS 7 as an example to explain how to use the epel image of this mirror site. CentOS 8 can also use this method.

First install epel-release from the CentOS Extras source (this mirror site also has a mirror):

yum install epel-release

Modify /etc/yum.repos.d/epel.repo to comment out the lines starting with mirrorlist and metalink.

Next, uncomment the line beginning baseurl in this file and replace http://download.fedoraproject.org/pub with https://mirror.dimensi.cloud.

Can be automatically replaced with the following command: (from https://github.com/tuna/issues/issues/687)

sed -e 's!^metalink=!#metalink=!g' \
    -e 's!^#baseurl=!baseurl=!g' \
    -e 's!//download\.fedoraproject\.org/pub!//mirror.dimensi.cloud!g' \
    -e 's!//download\.example/pub!//mirror.dimensi.cloud!g' \
    -e 's!http://mirrors!https://mirrors!g' \
    -i /etc/yum.repos.d/epel*.repo

The modification results are as follows: (for reference only, different versions may be different)

[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=https://mirror.dimensi.cloud/epel/7/$basearch
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
baseurl=https://mirror.dimensi.cloud/epel/7/$basearch/debug
#mirrorlist=https://mirrors.fedoraproject.org/metallink?repo=epel-debug-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
baseurl=https://mirror.dimensi.cloud/epel/7/SRPMS
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1

Run yum update to test it.

Server mirror Linux Indonesia ini disponsori oleh DimensiCloud dan GMedia

Contact Us