Installing EPEL and REMI repository on CentOS 5.x, 6.x, or 7.x

How to install EPEL and REMI repository on CentOS 5.x, 6.x, or 7.x? The following article will describe how to configure a CentOS 5 based, CentOS 6 based, or CentOS 7 based system to use Fedora Epel repos and third party remi package repos. These package repositories are not officially supported by CentOS, but they provide much more current versions of popular applications like PHP or MYSQL. Like the PHP that the official repositories provide is 5.3.3, the PHP from REMI repository is much more current versions PHP 5.5 or 5.6. Install the extra repositories: The first step requires downloading some RPM files that contain the additional YUM repository definitions. The example below point to the 64-bit versions that work with 64bit VPS instances. CentOS 5.x 64-bit

1
2
3
wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

CentOS 6.x 64-bit

1
2
3
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

CentOS 7.x 64-bit

1
2
3
wget http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
sudo rpm -Uvh remi-release-7*.rpm epel-release-7*.rpm

The example below point to the 32-bit versionsthat work with 32bit VPS instances. For CentOS 7.x, 64 bit version only CentOS 5.x 32-bit

1
2
3
wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

CentOS 6.x 32-bit

1
2
3
wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

To see all the repos you have with their current status, execute:

1
yum repolist

Enable the REMI repository By default, the REMI repository is disabled. The REMI repository provides a variety of up-to-date packages that are useful or are a requirement for many popular web-based services. REMI maintains latest version of MySQL and PHP (backports of fedora RPM) so it is not a bad idea to enable the REMI repositories by default. Use VIM or NANO to edit /etc/yum.repos.d/remi.repo

1
vi /etc/yum.repos.d/remi.repo

or

1
nano /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.

1
2
3
4
5
6
7
[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

Edit the [remi-php55] portion of the file so that the enabled option is set to 1. This will enable the PHP 5.5 update.

1
2
3
4
5
6
7
8
[remi-php55]
name=Les RPM de remi de PHP 5.5 pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/php55/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/php55/mirror
# WARNING: If you enable this repository, you must also enable "remi"
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

Enabling [remi-php56] PHP 5.6 update is Not recommend before the stable version come out You will now have a larger array of yum repositories from EPEL and REMI. Next is update your CentOS

1
yum update
Host Your DNS With Google Cloud DNS Raspberry Pi Model B+ (July 2014) VS Model B

Comments