Install EPEL Repository in CentOS 7/6
To install the EPEL repository in CentOS-7/6, simply run:
# yum install epel-release
For some reason, it may not be possible to install an EPEL repository using yum.
This can happen if, for example, the CentOS Extras repository is disabled.
In this case, yum will tell you: "No package epel-release available".
In such a situation, you can download and install the epel-release package yourself using one of the commands below, depending on the system version.
Install EPEL repository in CentOS-7:
# rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Install EPEL repository in CentOS-6:
# rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
Verify EPEL Installation
Default: EPEL repository is enabled by default and its settings can be found in /etc/yum.repos.d/epel.repo.
To verify that the EPEL repository is installed, locate it in the list of yum repositories:
$ yum repolist | grep "^epel\|repo id"
Output example:
repo id repo name status
epel Extra Packages for Enterprise Linux 6 - x86_64 8,447
To remove EPEL Repository
You can simply delete the EPEL repository by running:
# yum remove epel-release
Alternatively, you can use the rpm-qa command to find THE EPEL package name:
# rpm -qa | grep epel
And delete it as follows:
# rpm -e epel-release-x-x.noarch
- 0 Користувачі вважають це корисним