Knowledge Base

How to install the EPEL repository on CentOS

This article describes how to install the Extra Packages for Enterprise Linux (EPEL) repository on a semi-managed server running CentOS. The EPEL repository enables you to install additional Fedora-based packages on CentOS servers.

You must have root access to the server to follow the procedures in this article.

Installing the EPEL repository

To install the EPEL repository on your CentOS semi-managed server, follow these steps:

  1. Log in to the server as the root user.
  2. At the command prompt, type the following command to update the server:
    yum -y update
  3. To install the EPEL repository, type the following command:

    yum -y install epel-release
  4. To verify that the EPEL repository has been added, type the following command:

    yum repolist

    A line similar to the following line should appear in the list of repositories:

    epel         Extra Packages for Enterprise Linux 6 - x86_64
  5. You can now install any of the packages in the EPEL repository.

More Information

For more information about the EPEL repository, please visit http://fedoraproject.org/wiki/EPEL.