Tips / Nginx

Installing EPEL repository on Centos 5.x / 6.x / 7.x

How to install EPEL repository on Centos 5.x / 6.x / 7.x

EPEL means Extra Packages for Enterprise Linux, these are some extra packages that are always needed and these are not included in the default installation of some Linux distributions, for example CentOS. Why is it related to Nginx? Because even this is not an official Nginx repo, it can provide different Nginx rpm alternatives to the one from the official Nginx repo.

Installing the extra repositories

Let’s download the RPM file for CentOS 5.x and CentOS 6.x:

EPEL repo for  Centos 5.x

rpm -Uvh epel-release-5*.rpm

EPEL repo for Centos 6.x

rpm -Uvh  epel-release-6*.rpm

EPEL repo for Centos 7.x

rpm -Uvh  epel-release-6*.rpm

That command will install the EPEL repo inside your /etc/yum.repos.d directory.

[]ls -alh /etc/yum.repos.d/ | grep epel
-rw-r--r-- 1 root root 957 Nov 4 2012 epel.repo
-rw-r--r-- 1 root root 1.1K Nov 4 2012 epel-testing.repo

All done, now you should have a new source for installing Nginx and other useful tools that any sysadmin may need.

Popular search terms:

  • centos install epel-release
  • epel rhel5
  • epel centos 5
  • ddd epel how to install centos 6

Esteban Borges

Linux Geek, Webperf Addict, Nginx Fan. CTO @Infranetworking