The EPEL repository (Extra Packages for Enterprise Linux) is an open source and free community based repository project from Fedora team, which provides 100% high quality add-on software packages for Linux distributions.
The following article describes how to install and enable the EPEL repository on CentOS-8/7/6, how to verify the EPEL installation and how to remove it, if needed.
Install EPEL Repo on CentOS-8/7/6
To install the EPEL repository on CentOS-8/7/6, simply type:
# yum install epel-release
This can happen if, for example, the
CentOS Extras repository is disabled.
In such situation
yum may say:
No package epel-release available
In this case you can manually download and install the
epel-release packedge with one of the below commands, depending on your system’s version.
Install the EPEL repository on CentOS-8:
# rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Install the EPEL repository on CentOS-7:
# rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Install the EPEL repository on CentOS-6:
# rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
Verify The EPEL Installation
Enabled By Default: The EPEL repository is enabled by default and its settings can be found in
To ensure that the EPEL repository is installed, search for it in the list of
# yum repolist | grep -i "epel\|repo id"
repo id repo name status *epel Extra Packages for Enterprise Linux 8 - x86_64 2651
Cool Tip: Can’t find the usual tools like
ifconfig in the “Minimal” installation of CentOS? Just upgrade it to “Base” with
yum! Read more →
Remove The EPEL Repository
You can simply remove the EPEL repository, by running:
# yum remove epel-release
Or you can find the EPEL package name using the
rpm -qa command:
# rpm -qa | grep epel
And delete is as follows:
# rpm -e epel-release-x-x.noarch