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 | wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm |
CentOS 6.x 64-bit
1 | wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm |
CentOS 7.x 64-bit
1 | wget http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.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 | wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm |
CentOS 6.x 32-bit
1 | wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.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 | [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 | [remi-php55] |
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 |
Comments