How to add Extra Packages for Enterprise Linux (EPEL)

Check to see if you already have the Extra Packages for Enterprise Linux (EPEL) repository loaded.

$ yum repolist
Loaded plugins: product-id, search-disabled-repos, subscription-manager
repo id                                repo name                                  status
packages-microsoft-com-prod            packages-microsoft-com-prod                   112
rhel-7-server-rpms/7Server/x86_64      Red Hat Enterprise Linux 7 Server (RPMs)   31,958
repolist: 32,070

If the EPEL repository is not shown in the list then install the repository using the following yum command.

The following repository rpm package installs the repository details on your local system for yum or dnf to use. You will then be able to install packages using the normal methods and the EPEL repository is included.

As root for RHEL 7 do:

yum -y install http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

As root for RHEL 8 do:

yum -y install http://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

Additional information on EPEL can be found on the Fedora Project EPEL/FAQ.

Validate the EPEL install.

$ yum repolist
repo id                                repo name                                  status
packages-microsoft-com-prod            packages-microsoft-com-prod                   112
rhel-7-server-rpms/7Server/x86_64      Red Hat Enterprise Linux 7 Server (RPMs)   31,958
epel/x86_64                            Extra Packages for Enterprise Linux 7      13,608
repolist: 45,678

Comments are closed.