ScaleScaleScaleScale

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 Nginx.org.

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

wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh remi-release-5*.rpm

Remi repo for Centos 6.x

wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm

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

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

enabled=0

And change it to 1:

enabled=1

It should look like this:

[remi]
name=Les RPM de remi pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

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

profile

Esteban Borges

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