WARNING: As of now, EPEL 8 has not been released. This method will work when EPEL 8 becomes available. If you need something from the EPEL before the release of version 8, EPEL 7 will work, and you can upgrade from 7 to 8 when it becomes available by altering your repositories.

RHEL tends to contain a fairly limited set of packages. That's because of its strong focus on the enterprise. For developers using RHEL on their workstations or people looking for an elusive extra package, though, this can be somewhat troublesome. That's why the Fedora project created the EPEL. It's a repository for RHEL and CentOS that provides many common packages that aren't included in the default RHEL release.

In this tutorial you will learn:
  • How to Enable the EPEL Via DNF
  • How to ENable the EPEL With a Repository File
EPEL Enabled on RHEL 8
EPEL Enabled on RHEL 8.

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System RHEL 8
Software EPEL Repository
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ - requires given linux commands to be executed as a regular non-privileged user

How to Enable the EPEL Via DNF

There are two main ways to enable the EPEL. The first, and simplest, is to use a package provided directly by the RHEL repositories. Red Hat is clearly aware of the demand for the EPEL, and they've made it as easy as installing a package with DNF. Open a terminal and run the following command to get the EPEL set up.

# dnf install epel-release


That will automatically set up the EPEL release corresponding to your version of RHEL.

How to Enable the EPEL With an RPM

There's a more manual way to install the EPEL, if you choose. This method involves grabbing the EPEL RPM directly from the Fedora project. The result here is exactly the same as the first method, but it allows you to specify the package you're installing.

# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

If that didn't work because EPEL 8 isn't available, you can grab EPEL 7 for now.

# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

You can browse the available releases on the server directory.

Conclusion

Once you have the EPEL set up on your system, you'll be able to pull from it like the default RHEL sources. You'll receive regular updates as well. Also, there's very little cause for concern with the stability of EPEL packages. They're tested to work with RHEL and CentOS by the Fedora developers.

ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed on LinuxCareers.com.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in:



Comments and Discussions