Wednesday 29 May 2013

Enable EPEL Repository on RHEL/CentOS/Scientific Linux 6

What is EPEL

Extra Packages for Enterprise Linux (EPEL) is a volunteer based effort from the Fedora project community  to create a repository of high quality additional packages for Enterprise Linux and it's clones CentOS and Scientific Linux.

Most of the cases the required packages may not be available on the standard yum repositories like base, extra or updates and you need to download the source code from the corresponding open source project site, compile it and then install it on our system.

If you enable EPEL you can install most of the packages using the yum command.

How to check EPEL has enabled on your system

#rpm -qa | grep epel

or you can use yum repolist to see EPEL package has enabled or not.

How to enable EPEL

Install the appropriate EPEL package to enable the EPEL repository on your system.

RHEL/CentOS/SL 6 32-Bit
# rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

RHEL/CentOS/SL 6 64-Bit
# rpm -ivh  http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Disable EPEL Repository

You can disable accidental updates from the repository by setting enabled = 0 in the repo definition file in /etc/yum.repos.d/epel.repo.

Now you can use yum to install the available packages from the EPEL Repository.
#yum install --enablerepo=epel package_name, say rsnapshot.


Note: The EPEL configuration file is located under /etc/yum.repos.d/epel.repo

No comments:

Post a Comment