How to: Install the EPEL repository on RHEL 8

RHEL(Red Hat Enterprise Linux) is one of the more commonly used Linux distributions in the corporate world today alongside CentOS and Fedora. It’s security and support is very well known for being top notch. EPEL offers Linux users a wide array of tools that would prove to be useful for everyday tasks, but isn’t readily available in RHEL in general. Here’s how you can install it.


For Fedora and CentOS, EPEL can be installed through their respective repositories without any additional configuration. Red Hat on the other hand requires you to download the package and install it. Lucky for us, the dnf or yum package managers allows us to do just that with ease.

Please do note that Red Hat doesn’t provide any support for the installation of EPEL, since it isn’t part of their offering.

Here we are going to simply use either dnf or yum to pull the package from the Fedora repository and have it install automatically:

dnf -y install
yum -y install

Upon completion you should be able to use the repository straight away. In order to make sure that it is enabled, you can also do this:

yum config-manager --enable epel
dnf config-manager --enable epel

Be sure to run the following as well after installation:

dnf update or yum update

Try installing something like htop which is part of the EPEL repository:

dnf -y install htop

You will noticed that htop is pulled from our newly install repository and installed without any issues. This can be done with any third-party repository that is needed on your Red Hat system. Please make sure that you trust and verify the integrity of any external repositories.