Red Hat / CentOS

How To Enable EPEL Repository On CentOS 8 / RHEL 8

How To Enable EPEL Repository On CentOS 8 / RHEL 8

Extra Packages for Enterprise Linux (EPEL) is a package repository that provides additional packages that are not included in standard RHEL / CentOS repositories.

Fedora community maintains the EPEL repository.

This guide helps you how to enable EPEL repository on CentOS 8 / RHEL 8.

Why Install EPEL Repository ?

So, why should one consider installing the EPEL repository? The reason is quite simple. EPEL gives the user access to a spectrum of high-quality software packages of commonly used software applications in RHEL and CentOS, Oracle as well as Scientific Linux as discussed earlier.

Some of the applications which constitute EPEL include htop which provides an overview of the system’s performance.


Before we get started, ensure that the following requirements are met.

  1. A running instance of RHEL 8 / centOS 8.
  2. login to an RHEL 8.x host called server1 using ssh client.
  3. A good internet connection.

Let’s dive and install EPEL repository on RHEL 8.0.

Installing EPEL Repository

The EPEL repository can be enabled by installing EPEL repository configuration rpm.

CentOS 8

# dnf install -y epel-release


# yum install -y

Additionally, enable Code ready builder repository on RHEL 8 since EPEL packages may depend on packages from it.

# subscription-manager repos --enable "codeready-builder-for-rhel-8-*-rpms"

To list the packages that constitute the EPEL repository, run the command.

# dnf --disablerepo="*" --enablerepo="epel" list available

List Repositories

You can find the EPEL repository in the list.

# dnf repolist

The output will look like below


For example, search a package named screen and install it on RHEL 8 /centOS 8 using EPEL repo. The commands are as follows

## search it ##
# dnf search screen
## get more info, if found ##
# dnf info screen
## install it ##
# dnf install screen

or yum



In this tutorial we learned how to install and enable the EPEL8 repository on RHEL 8 / CentOS 8. We saw how to install the auto-configuration package which provides the “.repo” files which contain the repository configuration. We also learned how to verify that the new software source has been added to the system, and how to list all the package provided by it.


About the author


jon snow

Jon is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, and currently a content creator for ERRORHAT who loves working with computers and strongly believes in sharing knowledge.

Add Comment

Click here to post a comment