Chapter 2. Installation
2.1. Getting Access to Red Hat Software Collections
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
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 with
- Attach the appropriate subscription to your system by running the following command as
subscription-manager subscribe --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 as
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
yum repolist allThe 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-rpmsReplace variant with the Red Hat Enterprise Linux system variant, that is,
workstation. Note that Red Hat Software Collections is supported neither on the
Clientnor on the
- Enable the appropriate repository by running the following command as
yum-config-manager --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
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 (
rhel-x86_64-variant-6-rhscl-1 rhel-x86_64-server-6.4.z-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-1Note that Red Hat Enterprise Linux 7 channels are accessible only through Red Hat Satellite instances.
- Subscribe the system to the Red Hat Software Collections channel by running the following command as
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
2.2. Installing Red Hat Software Collections
Optionalchannel to be enabled in order to complete the full installation of these packages:
- The php54-php-imap and php55-php-imap packages require the libc-client package from the Optional channel.
- The php54-php-recode and php55-php-recode packages require the recode package from the Optional channel.
- The perl516-perl-devel package requires the gdbm-devel package from the Optional channel.
- The mariadb55-mariadb-bench package requires the perl-GD package from the Optional channel.
Optionalchannel are required:
- The Node.js Software Collection depends on the nodejs010-nodejs-devel package, which requires the c-ares-devel package from the Optional channel (applicable to minimal install).
- The httpd24-mod_ldap package requires the apr-util-ldap package from the Optional channel.
- The php54-php-pspell and php55-php-pspell packages require the aspell package from the Optional channel.
- The python27-python-debug package requires the tix package from the Optional channel.
- The thermostat1-thermostat package requires the apache-commons-beanutils, jansi, hawtjni, jansi-native, and objectweb-asm packages from the Optional channel (applicable to minimal install).
- The thermostat1-thermostat-webapp package requires the felix-framework package from the Optional channel (applicable to minimal install).
- The thermostat1-netty package requires the jzlib package from the Optional channel (applicable to minimal install).
- The apache-commons-logging package requires the xerces-j2 package from the Optional channel (applicable to minimal install).
2.2.1. Installing Individual Software Collections
yum install software_collection...
yum install php54 mariadb55
2.2.2. Installing Optional Packages
yum list available software_collection-\*
yum install package_name...
yum install perl516-perl-CPAN perl516-perl-Archive-Tar
2.2.3. Installing Debugging Information
rhel-variant-rhscl-7-debug-rpmsrepository 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-7-rhscl-1-debuginfochannel 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
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.