1.4. Getting Access to Red Hat Developer Toolset

Red Hat Developer Toolset is an offering that is distributed as part of the developer subscriptions listed in Table 1.2, “Subscriptions That Provide Red Hat Developer Toolset”. Depending on the subscription management service with which you registered your Red Hat Enterprise Linux system, you can either enable Red Hat Developer Toolset by using the Red Hat Subscription Management, or by using RHN Classic.
For detailed instructions on how to enable Red Hat Developer Toolset using RHN Classic or Red Hat Subscription Management, see the respective section below. For information on how to register your system with one of these subscription management services, see the Red Hat Subscription Management Guide.

Important

If you are running a version of Red Hat Enterprise Linux prior to 5.9 or 6.4, you will be unable to download Red Hat Developer Toolset through Red Hat Subscription Management. To obtain Red Hat Developer Toolset, you will need to either update to Red Hat Enterprise Linux 5.9 or 6.4, or register your system with RHN Classic. For more information, see https://access.redhat.com/site/solutions/129003.

Table 1.2. Subscriptions That Provide Red Hat Developer Toolset

SKU Subscription Name
RH2282403 Red Hat Enterprise Linux Developer Support, Professional
RH2264664 Red Hat Enterprise Linux Developer Support, Enterprise
RH2262474 Red Hat Enterprise Linux Developer Suite
RH3482727 Red Hat Enterprise Linux Developer Workstation, Professional
RH3413336 Red Hat Enterprise Linux Developer Workstation, Enterprise
RH3414706 30 day Self-Supported Red Hat Enterprise Linux Developer Workstation Evaluation
RH3474212 60 day Supported Red Hat Enterprise Linux Developer Workstation Evaluation
RH3437268 90 day Supported Red Hat Enterprise Linux Developer Workstation Evaluation
SER0402 1-year Unsupported Partner Evaluation Red Hat Enterprise Linux
SER0403 1-year Unsupported Red Hat Advanced Partner Subscription

1.4.1. Using RHN Classic

If your system is registered with RHN Classic, complete the following steps to subscribe to Red Hat Developer Toolset:
  1. Determine the exact name of the Red Hat Developer Toolset channel. To do so, type the following at a shell prompt as root to display a list of all channels that are available to you:
    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:
    rhel-architecture-variant-dts2-version
    In addition, certain packages such as devtoolset-2-git or devtoolset-2-gcc-plugin-devel depend on packages that are only available in the Optional channel. The name of this channel uses the following format:
    rhel-architecture-variant-optional-version
    Replace architecture with the system's CPU architecture (x86_64 or i386), variant with the Red Hat Enterprise Linux system variant (server or workstation), and version with the Red Hat Enterprise Linux system version (5 or 6).
  2. Subscribe the system to the channels from Step 1 by running the following command as root:
    rhn-channel --add --channel=channel_name
    Replace channel_name with the name of the channel to enable.
  3. To verify the list of channels you are subscribed to, at any time, run as root:
    rhn-channel --list
Once the system is subscribed, you can install Red Hat Developer Toolset as described in Section 1.5, “Installing Red Hat Developer Toolset”. For more information on how to register your system with RHN Classic, see the Red Hat Subscription Management Guide.

1.4.2. Using Red Hat Subscription Management

If your system is registered with Red Hat Subscription Management, complete the following steps to attach a subscription that provides access to the repository for Red Hat Developer Toolset, and then enable that repository:
  1. Determine the pool ID of a subscription that provides Red Hat Developer Toolset. To do so, type the following at a shell prompt as root to display a list of all subscriptions that are available for your system:
    subscription-manager list --available
    For each available subscription, this command displays its name, unique identifier, expiration date, and other details related to your subscription. The pool ID is listed on a line beginning with Pool Id.
    For a complete list of subscriptions that provide access to Red Hat Developer Toolset, see Table 1.2, “Subscriptions That Provide Red Hat Developer Toolset”.
  2. Attach the appropriate subscription to your system by running the following command as root:
    subscription-manager subscribe --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, at any time, run as root:
    subscription-manager list --consumed
  3. Determine the exact name of Red Hat Developer Toolset repositories. To do so, type the following at a shell prompt as root to retrieve repository metadata and to display a list of available Yum repositories:
    subscription-manager repos --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-dts2-version-rpms
    rhel-variant-dts2-version-debug-rpms
    rhel-variant-dts2-version-source-rpms
    In addition, certain packages such as devtoolset-2-git or devtoolset-2-gcc-plugin-devel depend on packages that are only available in the Optional channel. The repository names with these packages use the following format:
    rhel-version-variant-optional-rpms
    rhel-version-variant-optional-debug-rpms
    rhel-version-variant-optional-source-rpms
    Replace variant with the Red Hat Enterprise Linux system variant (server or workstation), and version with the Red Hat Enterprise Linux system version (5 or 6).
  4. Enable the repositories from Step 3 by running the following command as root:
    subscription-manager repos --enable repository
    Replace repository with the name of the repository to enable.
Once the subscription is attached to the system, you can install Red Hat Developer Toolset as described in Section 1.5, “Installing Red Hat Developer Toolset”. For more information on how to register your system using Red Hat Subscription Management and associate it with subscriptions, see the Red Hat Subscription Management Guide.