Tips / Nginx

Installing Remi repository on CentOS 5.x or 6.x

How to install Remi repository on Centos 5.x / 6.x

Remi is a guy from France that has been working on his own RPM repo since many years ago, this repo is available for free to the public. It’s very stable, it includes a large quantity of software and in it’s updates are released very often. Why is it related to Nginx? Because even this is not an official Nginx repo, it can provide different Nginx rpm alternatives than the official ones provided by

Installing the Remi repositories

The first step: download the Remi RPM file for CentOS 5.x and CentOS 6.x:

Remi repo for  Centos 5.x

rpm -Uvh remi-release-5*.rpm

Remi repo for Centos 6.x

rpm -Uvh remi-release-6*.rpm

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

[]ls -alh /etc/yum.repos.d/ | grep remi
-rw-r--r-- 1 root root 1020 Jun 19 16:54 remi.repo

Enable REMI repo

pico -w /etc/yum.repos.d/remi.repo 

Then find this variable:


And change it to 1:


It should look like this:

name=Les RPM de remi pour Enterprise Linux 6 - $basearch

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


Esteban Borges

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