Enable remi repo
The remi repository provides a variety of up-to-date packages that are useful or are a requirement for many popular web-based services. That means it generally is not a bad idea to enable remi repo by default. Depending on the architecture of your server (Output of uname -a reveals it) , install the RPM from http://wiki.centos.org/AdditionalResources/Repositories (Ctrl + F for remi). REMI repo depends on EPEL (Extra Packages for Enterprise Linux) which can be again installed using the packages obtainable from the above link.
I am here explaining how to enable it on a CentOS 6 server. This may change slightly depending on the CentOS version and architecture. Mine if an x86_64 architecture as well.
NB : Below commands has to be read first and then only to be executed. Certain steps are shown just to be informative.
[root@minor ~]# uname -a Linux minor.detectivegroup.co.uk 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@minor ~]# wget http://rpms.famillecollet.com/enterprise/6/remi/x86_64/remi-release-6-1.el6.remi.noarch.rpm rpm -qpl remi-release-6-1.el6.remi.noarch.rpm warning: remi-release-6-1.el6.remi.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 00f97f56: NOKEY /etc/pki/rpm-gpg/RPM-GPG-KEY-remi /etc/yum.repos.d/remi.repo
Now let us proceed with the installation
[root@minor ~]# rpm -ivh remi-release-6-1.el6.remi.noarch.rpm warning: remi-release-6-1.el6.remi.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 00f97f56: NOKEY error: Failed dependencies: epel-release >= 6 is needed by remi-release-6-1.el6.remi.noarch [root@minor ~]# wget -c http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm [root@minor ~]# rpm -qpl epel-release-6-8.noarch.rpm warning: epel-release-6-8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 /etc/rpm/macros.ghc-srpm /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel.repo /usr/share/doc/epel-release-6 /usr/share/doc/epel-release-6/GPL [root@minor ~]# rpm -ivh remi-release-6-1.el6.remi.noarch.rpm epel-release-6-8.noarch.rpm
Now, open the /etc/yum.repos.d/remi.repo repository file using a text editor of your choice:
# vim /etc/yum.repos.d/remi.repo
Edit the [remi] portion of the file so that the enabled option is set to 1. This will enable the remi repository.
name=Les RPM de remi pour Enterprise Linux $releasever - $basearch #baseurl=http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/ mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi failovermethod=priority