Install REMI repository on CentOS or RHEL

Source: Internet
Author: User

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:

  1. $ Sudo rpm -- import http://rpms.famillecollet.com/RPM-GPG-KEY-remi
  2. $ Sudo rpm-ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

On CentOS 6:

  1. $ Sudo rpm -- import http://rpms.famillecollet.com/RPM-GPG-KEY-remi
  2. $ 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.

  1. $ 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:

  1. $ Sudo yum -- enablerepo = remi search <keyword>
  2. $ Sudo yum -- enablerepo = remi install <package-name>

  • 1
  • 2
  • Next Page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.