How to Install EPEL Repository on RHEL 8

EPEL, short for Extra Packages for Enterprise Linux, is a free and open source repository provided by Fedora team. EPEL provides extra or supplementary software packages for CentOS, RedHat, Oracle Linux & Scientific Linux distros.

It ships both rpm and dnf based software packages and enhances the ease of installation. In this guide, you will learn how to install EPEL on Red Hat Enterprise Linux version 8.x.

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.

Prerequisites

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

  1. A running instance of RHEL 8.0.
  2. A regular system user with sudo privileges.
  3. A good internet connection.

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

Installing EPEL Repository on RHEL 8.x

To install EPEL repository, log in to your RHEL 8 instance via SSH and run the command below.

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

When prompted, type y and hit Enter to allow the installation to proceed.

Install Epel Repository on RHEL 8

Install Epel Repository on RHEL 8

Next, update the system using the following command.

$ sudo dnf update

Once the update is complete, you can verify the installation of the EPEL repository by executing the command.

$ sudo rpm -qa | grep epel
Check EPEL Package Installation

Check EPEL Package Installation

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

$ sudo dnf --disablerepo="*" --enablerepo="epel" list available
List Software Packages Available in Epel

List Software Packages Available in Epel

Further, you can decide to search for an individual package by piping the results to grep command as follows.

$ sudo dnf --disablerepo="*" --enablerepo="epel" list available | grep package_name

For instance, to search for the htop package, run the command.

$ sudo dnf --disablerepo="*" --enablerepo="epel" list available | grep htop 
Search Individual Package in Epel

Search Individual Package in Epel

Install a Package from the EPEL Repository on RHEL 8

Once the EPEL repository has been successfully installed, a package can be installed using the command.

$ sudo dnf --enablerepo="epel" install <package_name>

For instance, to install the screen software package, run the command.

$ sudo dnf --enablerepo="epel" install screen
Install a Package from Epel Repo

Install a Package from Epel Repo

Alternatively, you can issue the command as shown.

$ sudo dnf install <package_name>

For example, to install htop package, the command will be.

$ sudo dnf install htop
Install Htop in RHEL 8 from EPEL

Install Htop in RHEL 8 from EPEL

Conclusion

And it’s a wrap ! In this guide, you learned how to install EPEL repository on RHEL 8.x version. We welcome you to try it out and share your feedback in the comment section below.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

James Kiarie

This is James, a certified Linux administrator and a tech enthusiast who loves keeping in touch with emerging trends in the tech world. When I'm not running commands on the terminal, I'm taking listening to some cool music. taking a casual stroll or watching a nice movie.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.