Install REMI repository on CentOS or RHEL
Question: How do I configure a REMI repository in CentOS or RHEL and install the packages in it?
The REMI repository provides updated versions of CentOS and RHEL core packages, especially the latest PHP/MySQL series, while CentOS/RHEL does not provide timely updates, the REMI repository can help you ).
One thing to remember when installing the REMI repository is not to run yum update when the REMI repository is enabled. Because the REMI repository package name is the same as that in RHEL/CentOS, running yum update may trigger unexpected updates. A good solution is to disable the REMI repository and enable it when you need to install a unique package in the RMEI repository.
Preparations
Before installing the REMI repository, you must first enable the EPEL repository because some packages in REMI depend on EPEL. Follow this guide to set the EPEL repository in CentOS or RHEL.
RedHat 6.2 modify yum source in Linux use CentOS source for free
Configure the epel yum Source
Redhat local yum source configuration
Description of yum configuration file
Install yum in RedHat 6.1)
YUM installation and cleaning
Build yum local source on CentOS 6.4
RHEL (RedHat) 6.3 use EPEL Yum Source
Install REMI Repository
Now follow the steps below to install the REMI repository.
On CentOS 7:
- $ Sudo rpm -- import http://rpms.famillecollet.com/RPM-GPG-KEY-remi
- $ Sudo rpm-ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
On CentOS 6:
- $ Sudo rpm -- import http://rpms.famillecollet.com/RPM-GPG-KEY-remi
- $ Sudo rpm-ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
By default, REMI is disabled. Run this command to check whether REMI has been successfully installed. You will see several REMI repositories, such as remi, remi-php55, and remi-php56.
- $ Yum repolist disabled | grep remi
Install a package from the REMI Repository
As mentioned above, it is recommended that you disable the REMI repository only when necessary.
To search for or install packages in the REMI repository, use these commands:
- $ Sudo yum -- enablerepo = remi search <keyword>
- $ Sudo yum -- enablerepo = remi install <package-name>