Logo
  • Ubuntu
  • CentOS
  • Debian
  • Fedora
  • RedHat

How to Enable Remi Repository to Install Latest LAMP Stack - DesignLinux

Apr 07 2021
designlinux 0 Comments

If you are a system administrator, a developer, or a DevOps engineer, chances are that at some point you’ve had to set up (or work with) a LAMP (Linux / Apache / MySQL or MariaDB / PHP) stack.

The web and database servers, along with the well-known server-side language, are not available in their latest versions from the major distributions’ official repositories. If you like to play or work with cutting-edge software, you will need to either install them from a source or use a third-party repository.

In this article, we will introduce Remi, a third-party repository that includes up-to-date versions of Apache, MySQL / MariaDB, PHP, and related software, for RPM-based distributions. It is important to note, however, that Remi is currently available (at the time of this writing – April 2021) for the following distributions:

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

With that in mind, let’s begin.

Installing the Remi Repository in CentOS, RHEL, and Fedora

Before we can actually install Remi, we need to enable the EPEL repository first. In Fedora, it should be enabled by default, but in CentOS and RHEL you will 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

As you can see in the following image, another repository named remi-safe is available as well:

List Yum Repositories
List Yum Repositories

This repository provides extensions that are either deprecated (but still used in legacy applications), under work-in-process, or that 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:

List PHP Packages
List PHP Packages

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

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

------ for PHP 8 ------ 
# yum module reset php
# yum module install php:remi-8.0


------ for PHP 7 ------ 
# yum module reset php
# yum module install php:remi-7.3

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

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

In this article, we have explained how to enable and use Remi, a third-party repository that provides the latest versions of components of the LAMP stack and related software.

The official website provides a configuration wizard that can be very useful to set it up in other RPM-based distributions.

As always, don’t hesitate to let us know if you have questions or comments about this article. Just drop us a line using the form below and we will respond as soon as possible.

Related

Tags: CentOS Tips, Fedora Tips, LAMP Guides, Remi Repository, RHEL Tips

How to Setup MySQL Master-Slave Replication on RHEL 8

Prev Post

How to Install TeamViewer 15 on RHEL/CentOS/Fedora and Debian/Ubuntu

Next Post
Archives
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
Categories
  • AlmaLinux
  • Android
  • Ansible
  • Apache
  • Arch Linux
  • AWS
  • Backups
  • Bash Shell
  • Bodhi Linux
  • CentOS
  • CentOS Stream
  • Chef
  • Cloud Software
  • CMS
  • Commandline Tools
  • Control Panels
  • CouchDB
  • Data Recovery Tools
  • Databases
  • Debian
  • Deepin Linux
  • Desktops
  • Development Tools
  • Docker
  • Download Managers
  • Drupal
  • Editors
  • Elementary OS
  • Encryption Tools
  • Fedora
  • Firewalls
  • FreeBSD
  • FTP
  • GIMP
  • Git
  • Hadoop
  • HAProxy
  • Java
  • Jenkins
  • Joomla
  • Kali Linux
  • KDE
  • Kubernetes
  • KVM
  • Laravel
  • Let's Encrypt
  • LFCA
  • Linux Certifications
  • Linux Commands
  • Linux Desktop
  • Linux Distros
  • Linux IDE
  • Linux Mint
  • Linux Talks
  • Lubuntu
  • LXC
  • Mail Server
  • Manjaro
  • MariaDB
  • MongoDB
  • Monitoring Tools
  • MySQL
  • Network
  • Networking Commands
  • NFS
  • Nginx
  • Nodejs
  • NTP
  • Open Source
  • OpenSUSE
  • Oracle Linux
  • Package Managers
  • Pentoo
  • PHP
  • Podman
  • Postfix Mail Server
  • PostgreSQL
  • Python
  • Questions
  • RedHat
  • Redis Server
  • Rocky Linux
  • Security
  • Shell Scripting
  • SQLite
  • SSH
  • Storage
  • Suse
  • Terminals
  • Text Editors
  • Top Tools
  • Torrent Clients
  • Tutorial
  • Ubuntu
  • Udemy Courses
  • Uncategorized
  • VirtualBox
  • Virtualization
  • VMware
  • VPN
  • VSCode Editor
  • Web Browsers
  • Web Design
  • Web Hosting
  • Web Servers
  • Webmin
  • Windows
  • Windows Subsystem
  • WordPress
  • Zabbix
  • Zentyal
  • Zorin OS
Visits
  • 0
  • 47
  • 1,054,819

DesignLinux.com © All rights reserved

Go to mobile version