Chapter 2. Installation
2.1. Getting Access to Red Hat Software Collections
Optional channel, which are listed in Section 2.1.3, “Packages from the Optional Channel”, cannot be installed from the ISO image.
Note
Optional channel cannot be installed from the ISO image. A list of packages that require enabling of the Optional channel is provided in Section 2.1.3, “Packages from the Optional Channel”.
2.1.1. Using Red Hat Subscription Management
- Display a list of all subscriptions that are available for your system and determine the pool ID of a subscription that provides Red Hat Software Collections. To do so, type the following at a shell prompt as
root:subscription-manager list --availableFor each available subscription, this command displays its name, unique identifier, expiration date, and other details related to it. The pool ID is listed on a line beginning withPool Id. - Attach the appropriate subscription to your system by running the following command as
root:subscription-manager attach --pool=pool_idReplace pool_id with the pool ID you determined in the previous step. To verify the list of subscriptions your system has currently attached, type asroot:subscription-manager list --consumed - Display the list of available Yum list repositories to retrieve repository metadata and determine the exact name of the Red Hat Software Collections repositories. As
root, type:subscription-manager repos --listOr alternatively, runyum repolist allfor a brief list.The repository names depend on the specific version of Red Hat Enterprise Linux you are using and are in the following format:rhel-variant-rhscl-6-rpms rhel-variant-rhscl-6-debug-rpms rhel-variant-rhscl-6-source-rpms rhel-server-rhscl-6-eus-rpms rhel-server-rhscl-6-eus-source-rpms rhel-server-rhscl-6-eus-debug-rpms rhel-variant-rhscl-7-rpms rhel-variant-rhscl-7-debug-rpms rhel-variant-rhscl-7-source-rpms rhel-server-rhscl-7-eus-rpms rhel-server-rhscl-7-eus-source-rpms rhel-server-rhscl-7-eus-debug-rpms
Replace variant with the Red Hat Enterprise Linux system variant, that is,serverorworkstation. Note that Red Hat Software Collections is supported neither on theClientnor on theComputeNodevariant. - Enable the appropriate repository by running the following command as
root:subscription-manager repos --enable repository
2.1.2. Using RHN Classic
- Display a list of all channels that are available to you and determine the exact name of the Red Hat Software Collections channel. To do so, type the following at a shell prompt as
root:rhn-channel --available-channelsThe name of the channel depends on the specific version of Red Hat Enterprise Linux you are using and is in the following format, where variant is the Red Hat Enterprise Linux system variant (serverorworkstation):rhel-x86_64-variant-6-rhscl-1 rhel-x86_64-server-6.5.z-rhscl-1 rhel-x86_64-server-6.6.z-rhscl-1 rhel-x86_64-variant-7-rhscl-1 rhel-x86_64-server-7.1.eus-rhscl-1
Red Hat Enterprise Linux 7 channels are accessible only through Red Hat Satellite instances.Note
Red Hat Software Collections 2.x are distributed in the same channels as Red Hat Software Collections 1.x. - Subscribe the system to the Red Hat Software Collections channel by running the following command as
root:rhn-channel --add --channel=channel_nameReplace channel_name with the name you determined in the previous step. - Verify the list of channels you are subscribed to. As
root, type:rhn-channel --list
2.1.3. Packages from the Optional Channel
Optional channel to be enabled in order to complete the full installation of these packages. For detailed instructions on how to subscribe your system to this channel, see the relevant Knowledgebase articles on Red Hat Customer Portal: https://access.redhat.com/solutions/392003 for Red Hat Subscription Management or https://access.redhat.com/solutions/70019 if your system is registered with RHN Classic.
Optional channel to be enabled are listed in the following table.
Table 2.1. Packages Requiring Enabling of the Optional Channel in Red Hat Enterprise Linux 6
| Package from a Software Collection | Required Package from the Optional Channel |
|---|---|
| devtoolset-4-dyninst-testsuite | glibc-static |
| devtoolset-4-elfutils-devel | xz-devel |
| devtoolset-4-gcc-plugin-devel | mpfr, mpfr-devel |
| devtoolset-4-libgccjit | mpfr |
| devtoolset-6-dyninst-testsuite | glibc-static |
| devtoolset-6-elfutils-devel | xz-devel |
| devtoolset-6-gcc-plugin-devel | mpfr, mpfr-devel |
| devtoolset-6-libgccjit | mpfr |
| git19-git-cvs | cvsps |
| git19-git-svn | perl-YAML, subversion-perl |
| git19-perl-Git-SVN | perl-YAML, subversion-perl |
| mariadb55-mariadb-bench | perl-GD |
| mysql55-mysql-bench | perl-GD |
| php54-php-imap | libc-client |
| php54-php-recode | recode |
| php55-php-imap | libc-client |
| php55-php-recode | recode |
| rh-git29-git-cvs | cvsps |
| rh-git29-git-email | perl-Net-SMTP-SSL |
| rh-git29-perl-Git-SVN | perl-YAML, subversion-perl |
| rh-mariadb100-mariadb-bench | perl-GD |
| rh-mariadb101-boost-devel | libicu-devel |
| rh-mariadb101-boost-examples | libicu-devel |
| rh-mariadb101-boost-static | libicu-devel |
| rh-mariadb101-mariadb-bench | perl-GD |
| rh-mongodb30upg-boost-devel | libicu-devel |
| rh-mongodb30upg-boost-examples | libicu-devel |
| rh-mongodb30upg-boost-static | libicu-devel |
| rh-mongodb30upg-yaml-cpp-devel | libicu-devel |
| rh-mongodb32-boost-devel | libicu-devel |
| rh-mongodb32-boost-examples | libicu-devel |
| rh-mongodb32-boost-static | libicu-devel |
| rh-mongodb32-yaml-cpp-devel | libicu-devel |
| rh-mysql56-mysql-bench | perl-GD |
| rh-php56-php-imap | libc-client |
| rh-php56-php-recode | recode |
| rh-php70-php-imap | libc-client |
| rh-php70-php-recode | recode |
Optional channel in Red Hat Enterprise Linux 7 are listed in the table below.
Table 2.2. Packages Requiring Enabling of the Optional Channel in Red Hat Enterprise Linux 7
| Package from a Software Collection | Required Package from the Optional Channel |
|---|---|
| devtoolset-6-dyninst-testsuite | glibc-static |
| devtoolset-6-gcc-plugin-devel | libmpc-devel |
| git19-git-cvs | cvsps |
| git19-git-svn | subversion-perl |
| git19-perl-Git-SVN | subversion-perl |
| httpd24-mod_ldap | apr-util-ldap |
| nodejs010 | c-ares-devel |
| nodejs010-node-gyp | c-ares-devel |
| nodejs010-nodejs-columnify | c-ares-devel |
| nodejs010-nodejs-devel | c-ares-devel |
| nodejs010-nodejs-npmconf | c-ares-devel |
| nodejs010-nodejs-wcwidth | c-ares-devel |
| nodejs010-npm | c-ares-devel |
| rh-eclipse46 | ruby-doc |
| rh-eclipse46-eclipse-dltk-ruby | ruby-doc |
| rh-eclipse46-eclipse-dltk-sdk | ruby-doc |
| rh-eclipse46-eclipse-dltk-tests | ruby-doc |
| rh-git29-git-cvs | cvsps |
| rh-git29-perl-Git-SVN | subversion-perl |
| rh-perl520-perl-Pod-Perldoc | groff |
Optional channel are not supported. For details, see the Knowledgebase article https://access.redhat.com/articles/1150793.
2.2. Installing Red Hat Software Collections
2.2.1. Installing Individual Software Collections
root:
yum install software_collection...root:
~]# yum install rh-php56 rh-mariadb1002.2.2. Installing Optional Packages
yum list available software_collection-\*root:
yum install package_name...~]# yum install rh-perl524-perl-CPAN rh-perl524-perl-Archive-Tar2.2.3. Installing Debugging Information
root:
debuginfo-install package_name~]# debuginfo-install rh-ruby22-rubyrhel-variant-rhscl-6-debug-rpms or rhel-variant-rhscl-7-debug-rpms repository as described in Section 2.1.1, “Using Red Hat Subscription Management”. If your system is registered with RHN Classic, subscribe the system to the rhel-x86_64-variant-6-rhscl-1-debuginfo or rhel-x86_64-variant-7-rhscl-1-debuginfo channel as described in Section 2.1.2, “Using RHN Classic”. For more information on how to get access to debuginfo packages, see https://access.redhat.com/solutions/9907.
2.3. Uninstalling Red Hat Software Collections
root:
yum remove software_collection\*2.4. Rebuilding Red Hat Software Collections
rpmbuild --define 'scl foo' command, you first need to rebuild the metapackage, which provides the <collection>-build package.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.