AMP AMP

How to install Remi repository on CentOS 7

How to install Remi repository on CentOS 7

A Repository is a central file storage which has all the files stored and maintained in an organized way. The Remi repository requires to install EPEL repository first in the system. This tutorial will show you the installation procedure of Remi repository.

Installation procedure

To start the installation procedure, enter the command to install the EPEL repository and press y to start the installation.

[root@linuxhelp1 ~]# yum install epel-release -y
Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
 * base: centos.mirror.snu.edu.in
 * extras: centos.mirror.snu.edu.in
 * updates: centos.mirror.snu.edu.in
updates/7/x86_64/primary_db                                                                                                                                           | 3.9 MB  00:00:44    
Resolving Dependencies
-->  Running transaction check
--->  Package epel-release.noarch 0:7-9 will be installed
-->  Finished Dependency Resolution
.
.
.
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-9.noarch                                                                                                                                                   1/1
  Verifying  : epel-release-7-9.noarch                                                                                                                                                   1/1
Installed:
  epel-release.noarch 0:7-9                                                                                                                                                                  
Complete!

Now enter the following command to install the Remi repository.

[root@linuxhelp1 ~]# cd /usr/local/src/
[root@linuxhelp1 src]# wget https://rpms.remirepo.net/enterprise/remi-release-7.rpm
--2017-03-31 05:22:22--  https://rpms.remirepo.net/enterprise/remi-release-7.rpm
Resolving rpms.remirepo.net (rpms.remirepo.net)... 195.154.241.117, 2001:bc8:33a1:100::1
Connecting to rpms.remirepo.net (rpms.remirepo.net)|195.154.241.117|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8340 (8.1K) [application/x-rpm]
Saving to: ‘ remi-release-7.rpm’ 
100%[===================================================================================================================================================> ] 8,340       --.-K/s   in 0.005s 
2017-03-31 05:22:23 (1.56 MB/s) - ‘ remi-release-7.rpm’  saved [8340/8340]
[root@linuxhelp1 src]# ls
remi-release-7.rpm
[root@linuxhelp1 src]# rpm -Uvh remi-release-7.rpm
warning: remi-release-7.rpm: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:remi-release-7.3-1.el7.remi      ################################# [100%]

Thus Remi Repository is installed. Wasn' t that an easy installation? Remi repository could also be used as a central storage location.

FAQ
Q
Can I synchronize a local mirror of Remi repository?
A
To synchronize a local mirror can now use rsync, for this, check the mirrors list, and search one close to your location with the rsync flag.
Q
What is Remi repository?
A
A Repository is a central file storage which has all the files stored and maintained in an organized way.
Q
what would be the Remi repository for Centos 6.9?
A
Remi repository for Centos 6.9 is https://rpms.remirepo.net/enterprise/remi-release-6.rpm.
Q
Command or option for uninstalling rpm package?
A
To uninstall rpm package
# rpm -e packagename
Q
What are other repositories suitable for centos7?
A
Like Remi repository you can do try epel repository on Centos7