How to enable Epel repository on CentOS for YUM package managment

EPEL means Extra Packages for Enterprise Linux, these are some extra packages that are always needed and these are not included in the default installation of some Linux distributions, for example CentOS. Why is it related to Nginx? Because even this is not an official Nginx repo, it can provide different Nginx rpm alternatives to the one from the official Nginx repo.
The following article will describe how to configure a CentOS 5.x or Centos 6.x linux system to use Fedora EPEL repository.

How To Enable EPEL Repository in CentOS 5.x/6.x

First, you need to install wget.

# yum install wget -y

RHEL/CentOS 5.x 32 Bit

# wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
# rpm -ivh epel-release-5-4.noarch.rpm

RHEL/CentOS 5.x 64 Bit

# wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
# rpm -ivh epel-release-5-4.noarch.rpm

RHEL/CentOS 6.x 32 Bit

# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm

RHEL/CentOS 6.x 64 Bit

# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm

Verify EPEL Repo

You need to run folowing command:

# yum repolist
Verify epel repository sample output
Verify epel repository sample output

Also check out Enable Remi repository on CentOS 5.x/6.x

Related Articles

One Comment

  1. Good day! Just one question – can I use both EPEL repos (6 and 7) in CentOs 7?
    I use EPEL 7 now, but I need one program that is absent here but present in EPEL 6 (boinc-client).

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top button