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

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:

code

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

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

code

  1. 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:

bash

  1. 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:

bash

  1. 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:

bash

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

bash

  1. [root@cent1 ~]# less /etc/yum.repos.d/epel.repo
  2. [epel]
  3. name=Extra Packages for Enterprise Linux 5 - $basearch
  4. #baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch
  5. mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
  6. failovermethod=priority
  7. enabled=1
  8. gpgcheck=1
  9. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
  10.  
  11. [epel-debuginfo]
  12. name=Extra Packages for Enterprise Linux 5 - $basearch - Debug
  13. #baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug
  14. mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch
  15. failovermethod=priority
  16. enabled=0
  17. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
  18. gpgcheck=1
  19.  
  20. [epel-source]
  21. name=Extra Packages for Enterprise Linux 5 - $basearch - Source
  22. #baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS
  23. mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch
  24. failovermethod=priority
  25. enabled=0
  26. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
  27. 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.

Linux Administration: A Beginner’s Guide, Fifth Edition (Paperback)


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

Fedora Linux: A Complete Guide to Red Hat’s Community Distribution (Paperback)


List Price: $39.99 USD
New From: $20.13 USD In Stock
Used from: $1.72 USD In Stock

Share