ScaleScaleScaleScale

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

wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -Uvh epel-release-5*.rpm

EPEL repo for Centos 6.x

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh  epel-release-6*.rpm

EPEL repo for Centos 7.x

wget http://download.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
rpm -Uvh  epel-release-6*.rpm

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

[root@my.server.com:~]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:

  • epel rhel5
  • epel centos 5
  • ddd epel how to install centos 6
  • bamboo server requires epel-release
profile

Esteban Borges

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