How to add EPEL Repository to centos

Extra Packages for Enterprise Linux (EPEL) is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatible spinoffs such as CentOS or Scientific Linux. Visit the Fedora EPEL Wiki for more information.


Install  epel  package  with

rpm  -ivh

Then update the sources

yum  update

Now  check  if the  epel sources has been added

yum   repolist

epo id                                                           repo name                                status
addons                                                         CentOS-5 – Addons               enabled:     0
base                                                             CentOS-5 – Base                 enabled: 2,599
epel                                                              Extra Packages for Enterprise L enabled: 4,467
extras                                                           CentOS-5 – Extras               enabled:   333

openvz-kernel-rhel5                                      OpenVZ RHEL5-based kernel       enabled:    14
openvz-utils                                                  OpenVZ utilities                enabled:    24
rpmfusion-free-updates                                 RPM Fusion for EL 5 – Free – Up enabled:     1
rpmfusion-free-updates-testing                      RPM Fusion for EL 5 – Free – Te enabled:    86
rpmfusion-nonfree-updates                           RPM Fusion for EL 5 – Nonfree – enabled:     0
rpmfusion-nonfree-updates-testing               RPM Fusion for EL 5 – Nonfree – enabled:    22
updates                                                        CentOS-5 – Updates              enabled:   268
repolist: 7,814

And is done!