How to install the EPEL repository on CentOS

This article describes how to install the Extra Packages for Enterprise Linux (EPEL) repository on an unmanaged 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 unmanaged 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.

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.

We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.