Hamsa K
Editor
3 min read | 4 months ago

How to install and enable Remi repo in centos 7

How to install Remi repo

 Step 1: Login with root 

Login to your server as root or as a user with root privilege (sudo) via your favorite SSH client like Putty,Terminal etc.

 Step 2: Now download the .rpm file using wget command. Make sure you download the correct version for your CentOS version

# For CentOS/RHEL/Scientific Linux 7 x86_64 
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
# For CentOS/RHEL/Scientific Linux 6 i386 or x86_64 
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# For CentOS/RHEL/Scientific Linux 5 i386 or x86_64
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

Step 3 : Now, you can install it using RPM command

# For CentOS/RHEL/Scientific Linux 7 x86_64
rpm -Uvh remi-release-7.rpm 
# For CentOS/Scientific Linux 6 i386 or x86_64
rpm -Uvh remi-release-6.rpm 
# For RHEL 6 i386 or x86_64
rhn-channel --add --channel=rhel-$(uname -i)-server-optional-6 
# For CentOS/RHEL/Scientific Linux 5 i386 or x86_64
rpm -Uvh remi-release-5.rpm

step 4: Enable Remi repository

vi /etc/yum.repos.d/remi.repo

Find the line enabled =0 and change it to 1 to enable REMI repository.

enabled=1

Now list out the installed repositories with command.

# yum repolist

step 5: Now, you’re ready to install packages using yum command to install, update or delete any package

yum install <package name>

Note:

The official website https://rpms.remirepo.net/ is very useful to set it up in other RPM-based distributions.

Similarly, to install latest version of php follow our latest article install LAMP Stack 

That's all :)

 



Warning! This site uses cookies
By continuing to browse the site, you are agreeing to our use of cookies. Read our terms and privacy policy