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 --available
For 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_id
Replace 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 --list
Or alternatively, runyum repolist all
for 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,server
orworkstation
. Note that Red Hat Software Collections is supported neither on theClient
nor on theComputeNode
variant. - 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-channels
The 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 (server
orworkstation
):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_name
Replace 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 at https://access.redhat.com/solutions/392003 for Red Hat Subscription Management or at 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 |
rh-git29-git-all | cvsps |
rh-git29-git-cvs | cvsps |
rh-git29-perl-Git-SVN | perl-YAML, subversion-perl |
rh-mariadb101-boost-devel | libicu-devel |
rh-mariadb101-boost-examples | libicu-devel |
rh-mariadb101-boost-static | libicu-devel |
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-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-build | scl-utils-build |
devtoolset-6-dyninst-testsuite | glibc-static |
devtoolset-6-gcc-plugin-devel | libmpc-devel |
httpd24-mod_ldap | apr-util-ldap |
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-all | cvsps |
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 at 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-mariadb100
2.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-Tar
2.2.3. Installing Debugging Information
root
:
debuginfo-install package_name
~]# debuginfo-install rh-ruby22-ruby
rhel-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.