How to install EPEL repository on a CentOS/RHEL

 

 

 

 

EPEL (Extra Packages for Enterprise Linux) has been developed by the Fedora team as an open-source and free repository, containing 100% high-quality add-on software packages for several Linux distributions, including Red Hat Enterprise Linux (RHEL), CentOS, and Scientific Linux.

 

 

 

 

This article explains how to install and enable the EPEL repository on Centos and RHEL 7,

 

 

 

 

 

 

 

Step 1: EPEL Repository Installation and Enabling on CentOS

 

 

 

 

 

 

Type the following command to install the EPEL release package:

 

 

# sudo yum install epel-release

 

 

 

 

Run the command that lists all repositories available to verify that EPEL is enabled.

 

 

# sudo yum repolist

 

 

Output

 

 

# sudo yum repolist
repo id                  repo name
appstream                CentOS Stream 8 - AppStream
baseos                   CentOS Stream 8 - BaseOS
epel                     Extra Packages for Enterprise Linux 8 - x86_64
epel-modular             Extra Packages for Enterprise Linux Modular 8 - x86_64
epel-next                Extra Packages for Enterprise Linux 8 - Next - x86_64
extras                   CentOS Stream 8 - Extras

 

 

Your CentOS system has been enabled with the EPEL repository.

 

 

 

 

 

 

 

Step 2: Installing and enabling EPEL on RHEL

 

 

 


 


Run the following command to enable EPEL.

 

 

# sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E '%{rhel}').noarch.rpm

 

 

 

 

 

 

 

Both CentOS and RHEL 7 have successfully been configured with EPEL reapitory. Hopefully, you have found this article useful and gained some useful information from it. Thank you for reading.

 

 

 

 

 

 

Try VPSie for free today!