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.
- A running instance of RHEL 8 / centOS 8.
- login to an RHEL 8.x host called server1 using ssh client.
- 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.
# dnf install -y epel-release
# yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
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
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
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.