Saturday 28 September 2019

How to Enable Software Collections (SCL) yum repository on CentOS 7



The Software Collection is an additional package repository that allow users to easily and safely install most recent versions of applications and configure online environments without compromising the performance of the existing system. It is reliable, community edition and provides useful software packages that are not included in the official CentOS 7 default repositories.

This article describes enabling Software Collection (SCL) on CentOS 7. It can be installed by below two methods.

Method 1. The package to enable Software Collection SCL is available in CentOS 7 repository and it can be installed by yum command.

Step 1. Package installation: Follow the below command to Install and Enable SCL repository using yum:

[root@linuxcloudy ~]# yum install centos-release-scl
Loaded plugins: fastestmirror
…………………….
Installed:
  centos-release-scl.noarch 0:2-3.el7.centos

Dependency Installed:
  centos-release-scl-rh.noarch 0:2-3.el7.centos

Complete!
[root@linuxcloudy ~]#

Step 2. Verification: Verify the installation using the below command:

[root@linuxcloudy ~]# yum repolist
Loaded plugins: fastestmirror
……………………………
repo id                                                                           repo name                                                                       status
base/7/x86_64                                                                     CentOS-7 - Base                                                                 10,097
centos-sclo-rh/x86_64                                                             CentOS-7 - SCLo rh                                                               8,548
centos-sclo-sclo/x86_64                                                           CentOS-7 - SCLo sclo                                                               804
extras/7/x86_64                                                                   CentOS-7 - Extras                                                                  304
updates/7/x86_64                                                                  CentOS-7 - Updates                                                                 319
repolist: 20,072
[root@linuxcloudy ~]#

Now the SCL repository is enabled using yum command.

Method 2. Download RPM package and its dependency from CentOS official site and install using rpm command. The RPM package configures SCL repository.

Step 1. Package downloading: Run the following command to download SCL rpm package and its dependency from CentOS official site:

[root@linuxcloudy ~]# wget http://mirror.centos.org/centos/7/extras/x86_64/Packages/centos-release-scl-2-3.el7.centos.noarch.rpm
--2019-09-14 15:48:01--  http://mirror.centos.org/centos/7/extras/x86_64/Packages/centos-release-scl-2-3.el7.centos.noarch.rpm
Resolving mirror.centos.org (mirror.centos.org)... 2401:78c0::e00e, 160.116.15.18
Connecting to mirror.centos.org (mirror.centos.org)|2401:78c0::e00e|:80... connected.
HTTP request sent, awaiting response... 200 OK
……………………..
2019-09-14 15:48:02 (38.5 MB/s) - ‘centos-release-scl-2-3.el7.centos.noarch.rpm’ saved [12308/12308]

[root@linuxcloudy ~]# wget http://mirror.centos.org/centos/7/extras/x86_64/Packages/centos-release-scl-rh-2-3.el7.centos.noarch.rpm
--2019-09-14 15:48:14--  http://mirror.centos.org/centos/7/extras/x86_64/Packages/centos-release-scl-rh-2-3.el7.centos.noarch.rpm
Resolving mirror.centos.org (mirror.centos.org)... 2401:78c0::e00e, 160.116.15.18
Connecting to mirror.centos.org (mirror.centos.org)|2401:78c0::e00e|:80... connected.
HTTP request sent, awaiting response... 200 OK
…………………….
2019-09-14 15:48:14 (2.64 MB/s) - ‘centos-release-scl-rh-2-3.el7.centos.noarch.rpm’ saved [12324/12324]

[root@linuxcloudy ~]#

Step 2. Package installation: Install the downloaded packages one by one using rpm command:

[root@linuxcloudy ~]# rpm -ivh centos-release-scl-rh-2-3.el7.centos.noarch.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:centos-release-scl-rh-2-3.el7.cen################################# [100%]
[root@linuxcloudy ~]#
[root@linuxcloudy ~]# rpm -ivh centos-release-scl-2-3.el7.centos.noarch.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:centos-release-scl-2-3.el7.centos################################# [100%]
[root@linuxcloudy ~]#

Step 3. Verification: Run the following command to verify the installation of SCL repository:

[root@linuxcloudy ~]# yum repolist
Loaded plugins: fastestmirror
……………….
repo id                                                                           repo name                                                                       status
base/7/x86_64                                                                     CentOS-7 - Base                                                                 10,097
centos-sclo-rh/x86_64                                                             CentOS-7 - SCLo rh                                                               8,548
centos-sclo-sclo/x86_64                                                           CentOS-7 - SCLo sclo                                                               804
extras/7/x86_64                                                                   CentOS-7 - Extras                                                                  304
updates/7/x86_64                                                                  CentOS-7 - Updates                                                                 319
repolist: 20,072
[root@linuxcloudy ~]#

Done!!! Now the Software Collections (SCL) repository is configured.

No comments:

Post a Comment