How to setup Remi repository on CentOS 5/6 and Fedora 18/19/20

Remi repository

The Remi (Les RPM de Remi) repository provides the latest version of various software packages related to php and mysql for redhat based linux distros like centos, fedora and RHEL. It provides php, mysql, pecl packages, pear packages any many other open source/free php applications and libraries and many other php related packages. So its designed to assist in setting up apache+php based web servers with various kinds of open source applications. The default centos/fedora distros do no have the latest versions of these packages so repositories like Remi do the job.

The repository can be easily setup on CentOS/Fedora through the installer rpm which will setup the repository configuration.

Setup on CentOS 5.x/6.x

The Remi installer rpm file is available for both 5.x and 6.x versions of CentOS. The urls are as follows

CentOS 5.x -
CentOS 6.x -

On CentOS The Remi repository depends on the Epel repository which must be installed along with it, for it to work. If you already have epel repository setup then execute the following command

$ wget
$ rpm -Uvh remi-release-6*.rpm

If you do not already have Epel setup then run the following command. It will download the Epel installer file and install it along with Remi

$ wget
$ wget
$ rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

For CentOS 5.x

$ wget
$ wget
$ rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

Thats it. Now the remi repository should be setup on your CentOS system.

Setup on Fedora 18/19

On Fedora, Remi depends on the Rpmfusion repository. So first setup the rpmfusion repository.

## Remi Dependency on Fedora 19 / 18 / 17 ##
rpm -Uvh 
rpm -Uvh

The rpm file and configuration instructions for rpmfusion can be found here.

After rpmfusion is setup, move ahead to setting up Remi.

$ wget
$ yum install remi-release-19.rpm

Or directly

## Fedora 20 ##
rpm -Uvh

## Fedora 19 ##
rpm -Uvh
## Fedora 18 ##
rpm -Uvh
## Fedora 17 ##
rpm -Uvh

Make sure to use the correct url for your Fedora version. That should finish setting up the Remi repository on Fedora.

Verify Remi

After setting up the Remi repository, its time to check if its properly done. The Remi repository is disabled by default. If you want to enable it permanently then edit the file /etc/yum.repos.d/remi.repo

$ sudo nano /etc/yum.repos.d/remi.repo
name=Les RPM de remi pour Enterprise Linux 6 - $basearch

The very first section that starts with [remi] is the main repository. Change the value of enabled from 0 to 1 to enable it.

Otherwise it can be enabled via yum when needed using the enablerepo option.

# yum repolist --enablerepo=remi
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * remi:
 * updates:
repo id       repo name                                               status
base          CentOS-6 - Base                                          6,381
epel          Extra Packages for Enterprise Linux 6 - x86_64          10,031
extras        CentOS-6 - Extras                                           13
nginx         nginx repo                                                  47
remi          Les RPM de remi pour Enterprise Linux 6 - x86_64         1,320
updates       CentOS-6 - Updates                                       1,555
repolist: 19,347

Using the enablerepo option is sufficient when needed. As can be seen, the remi repository provides around 1320 packages. There are 2 more repos, namely remi-php55 and remi-test that provide even more packages.

List all packages

To list out all the packages provided by the Remi repo, use the following command.

# yum --disablerepo=* --enablerepo=remi,remi-php55,remi-test list available | less

Install packages from Remi repository

To install packages from Remi repo, use the enablerepo option again

# yum --enablerepo=remi,remi-php55 install php


Remi repository official site

Remi FAQ

Remi repository configuration instructions

Last Updated On : 28th November 2013

Subscribe to get updates delivered to your inbox

1 Comment + Add Comment

  • No available php package. :/

Leave a comment