Install The EPEL Repository On CentOS Linux 5.X, EPEL Repo

Installing the EPEL repository on CentOS Linux is easy to do so the below is simply a reference point if needed by anyone. EPEL stands for Extra Packages for Enterprise Linux and is a community based repository that was created for add-on Fedora Linux packages. There are many cases where installation instructions assume that the EPEL repo is already installed so if you run into an error because of a missing package or dependency package the EPEL repository is a great place to start. Below I have listed the i386(32-bit) and x86_64(64-bit) EPEL repository package list links which will allow you to easily verify that the packages you need are available before installing the EPEL repository. After the EPEL repository package list links there are separate commands listed to install the EPEL repository on 32-bit CentOS Linux 5.X and to install the EPEL repository on 64-bit CentOS Linux 5.X.

32-bit, i386 EPEL Repository Package List For CentOS 5.X:


http://download.fedora.redhat.com/pub/epel/5/i386/

64-bit, x86_64 EPEL Repository Package List For CentOS 5.X:


http://download.fedora.redhat.com/pub/epel/5/x86_64/

After you have verified the package you need to install on a server running CentOS Linux is included in the EPEL repo you can issue the commands below to install the repo.

**NOTE** When we initially wrote this article the most current EPEL repository version was 5-3 however the version number has now changed to 5-4 so we updated the links below. If you receive an error installing the EPEL repository then attempt changing the version number on the package in the command below such as changing the package download to 5-5 would mean you would be downlading epel-release-5-5.noarch.rpm instead of epel-release-5-4.noarch.rpm.

Install EPEL Repository On 32-bit CentOS Linux 5.X:

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

Install EPEL Repository On 64-bit CentOS Linux 5.X:

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

When you issue the above command from a shell prompt on CentOS Linux the output will look similar to the below EPEL reposiory installation.

EPEL Install Log From A CentOS 5.X Server:

[root@cent1 ~]# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
Retrieving http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
warning: /var/tmp/rpm-xfer.5ORSWq: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing...                ########################################### [100%]
   1:epel-release           ########################################### [100%]

Also you may want to view the EPEL repository yum configuration file located in the /etc/yum.repos.d/ directory to enable or disable various options. The file is named epel.repo (there is also epel-testing.repo) and the below are example contents of that file.

The EPEL Repository Yum Configuration File: epel.repo

[root@cent1 ~]# less /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 5 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 5 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 5 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1

As you can see above the epel-source and epel-debuginfo packages are not enabled by default so enabling them may be one of the modification you want to make.


List Price: $39.99 USD
New From: $15.95 USD In Stock
Used from: $0.78 USD In Stock


List Price: $39.99 USD
New From: $22.45 USD In Stock
Used from: $0.01 USD In Stock

Share