Remi, a third-party repository that includes up-to-date versions of Apache, MySQL / MariaDB, PHP, and related software, for RPM-based distributions. Please note, Remi is currently available for the following distributions:

  • CentOS 8/7
  • Red Hat Enterprise Linux 8/7
  • Fedora 34/33 and 32

 

Installing the Remi Repository in CentOS, RHEL, and Fedora

Before we proceed to install Remi, we need to verify whether the EPEL repository is enabled. In Fedora, it is enabled by default, but in CentOS and RHEL, we need to do:

 

Install Remi Repo in CentOS and RHEL

# yum update 
# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm  [CentOS/RHEL 8/7]
# yum install http://rpms.remirepo.net/enterprise/remi-release-8.rpm                  [CentOS/RHEL 8]                    
# yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm                  [CentOS/RHEL 7]

 

Install Remi Repo in Fedora

# dnf install http://rpms.remirepo.net/fedora/remi-release-34.rpm   [On Fedora 34]
# dnf install http://rpms.remirepo.net/fedora/remi-release-33.rpm   [On Fedora 33]
# dnf install http://rpms.remirepo.net/fedora/remi-release-32.rpm   [On Fedora 32]

 

By default, Remi is not enabled. To change this temporarily when you need it, you can do:

# yum --enablerepo=remi install package

 

Where package represents the package you want to install.

If you want to enable Remi permanently, edit /etc/yum.repos.d/remi.repo and replace

enabled=0

 

with

enabled=1

 

A Closer Look at this Remi Repository

If you decided to enable the repository permanently, as suggested earlier, it should be listed when you run:

# yum repolist

 

The above command displays all the repository named remi-safe available as well. This repository provides extensions that are either deprecated (but still used in legacy applications), under work-in-process, or do not comply with Fedora’s policies.

 

Now let’s search the newly added repositories for PHP-related packages as an example:

# yum list php*

 

Please note that packages in Remi have the same name as in the official repositories. Consider, for example, php:

 

If you need to install PHP 5.4, make sure to enable the suitable repository and disable the other.

To install the latest stable version of PHP 8, you can do:

 

Similarly, to install the latest version of LAMP Stack, do:

# yum --enablerepo=remi install php httpd mariadb-server mariadb

 

This is how to enable and use Remi, a third-party repository that provides the latest versions of the LAMP stack and related software components.

 

Was this answer helpful? 0 Users Found This Useful (0 Votes)