How to install and enable EPEL repository on a CentOS/RHEL 7

The Extra Packages for Enterprise Linux (EPEL) repository provides additional software packages for CentOS and Red Hat Enterprise Linux (RHEL) systems. To install and enable the EPEL repository on CentOS/RHEL 7, follow these steps:

  1. Download the EPEL repository RPM:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  1. Install the RPM:
sudo yum install epel-release-latest-7.noarch.rpm
  1. Verify that the EPEL repository is enabled:
yum repolist enabled

The output should include the EPEL repository, with a status of “enabled”.

After enabling the EPEL repository, you can install additional software packages by using the yum package manager. For example, you can use the following command to install a package:

sudo yum install package-name

It is important to note that some packages in the EPEL repository may not be tested or supported by CentOS or RHEL, so be sure to read the documentation and understand the risks before installing a package from the EPEL repository.

Leave a Comment