In this tutorial, we will show you how to enable REMI Repository on CentOS 8. For those of you who didn’t know, For those of you who didn’t know, REMI is a free-to-use repository created and maintained by Remi Collect. The REMI repository’s main goal is to provide the latest versions of the PHP stack, full-featured, and some other software packages to the Fedora and Enterprise Linux (RHEL, CentOS, Scientific Linux) operating systems.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘
sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of REMI Repository on a CentOS 8 server.
- A server running one of the following operating systems: CentOS 8.
- It’s recommended that you use a fresh OS install to prevent any potential issues.
- SSH access to the server (or just open Terminal if you’re on a desktop).
non-root sudo useror access to the
root user. We recommend acting as a
non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.
Enable Remi Repository on CentOS 8
Step 1. First, you need to enable the EPEL repository on your system.
Before we can actually install Remi, we need to enable the EPEL repository first.
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Now, run the following commands in your terminal to install the REMI repository on CentOS 8:
sudo dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
Then, Check enabled repositories:
sudo yum repolist
The output result will look like the below:
Last metadata expiration check: 0:00:04 ago on Tue 24 Sep 2019 08:20:18 PM EAT. repo id repo name status AppStream CentOS-8 - AppStream 4,890 BaseOS CentOS-8 - Base 2,713 *epel Extra Packages for Enterprise Linux 8 - x86_64 1,478 extras CentOS-8 - Extras 3 remi-modular Remi's Modular repository for Enterprise Linux 8 - x86_64 0 remi-safe Safe Remi's RPM repository for Enterprise Linux 8 - x86_64 1,923
Step 2. Enable Repository on CentOS 8 Linux.
You can enable repository at runtime:
sudo dnf --enablerepo=remi install php-(package) ### For example ### sudo dnf module install php:remi-7.3
Congratulations! You have successfully installed Remi Repo. Thanks for using this tutorial for installing REMI Repository on CentOS 8 system. For additional help or useful information, we recommend you check the official REMI website.