How To Enable REMI Repository on CentOS 8

Enable REMI Repository on CentOS 8

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 a Remi Collect. The REMI repository 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 through the step by step installation REMI Repository on a CentOS 8 server.

Enable REMI Repository on CentOS 8

Step 1. First, you need to enable 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 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 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.

You can enable repository at runtime:

sudo dnf --enablerepo=remi install php-(package)

### example ###

sudo dnf module install php:remi-7.3

Congratulation’s! You have successfully installed Repository. Thanks for using this tutorial for installing REMI Repository on CentOS 8 system. For additional help or useful information, we recommend you to check the official REMI website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!