Red Hat Training
A Red Hat training course is available for Red Hat Developer Toolset
1.5. Installing Red Hat Developer Toolset
Red Hat Developer Toolset is distributed as a collection of RPM packages that can be installed, updated, uninstalled, and inspected by using the standard package management tools that are included in Red Hat Enterprise Linux. Note that a valid subscription that provides access to the Red Hat Software Collections content set is required in order to install Red Hat Developer Toolset on your system. For detailed instructions on how to associate your system with an appropriate subscription and get access to Red Hat Developer Toolset, see Section 1.4, “Getting Access to Red Hat Developer Toolset”.
Before installing Red Hat Developer Toolset, install all available Red Hat Enterprise Linux updates.
1.5.1. Installing All Available Components
To install all components that are included in Red Hat Developer Toolset, install the devtoolset-6 package by typing the following at a shell prompt as
yum install devtoolset-6
This installs all development, debugging, and performance monitoring tools, and other dependent packages to the system. Alternatively, you can choose to install only a selected package group as described in Section 1.5.2, “Installing Individual Package Groups”.
Note that since Red Hat Developer Toolset 3.0, the scl-utils package is not a part of Red Hat Developer Toolset, which is a change from preceding versions where the
sclutility was installed along with the Red Hat Developer Toolset software collection.
1.5.2. Installing Individual Package Groups
To make it easier to install only certain components, such as the integrated development environment or the software development toolchain, Red Hat Developer Toolset is distributed with a number of meta packages that allow you to install selected package groups as described in Table 1.2, “Red Hat Developer Toolset Meta Packages”.
Table 1.2. Red Hat Developer Toolset Meta Packages
|Package Name||Description||Installed Components|
|devtoolset-6-perftools||Performance monitoring tools||SystemTap, Valgrind, OProfile, Dyninst|
|devtoolset-6-toolchain||Development and debugging tools||GCC, make, GDB, binutils, elfutils, dwz, memstomp, strace, ltrace|
To install any of these meta packages, type the following at a shell prompt as
yum install package_name
Replace package_name with a space-separated list of meta packages you want to install. For example, to install only the development and debugging toolchain and packages that depend on it, type as
yum install devtoolset-6-toolchain
Alternatively, you can choose to install all available components as described in Section 1.5.1, “Installing All Available Components”.
1.5.3. Installing Optional Packages
Red Hat Developer Toolset is distributed with a number of optional packages that are not installed by default. To list all Red Hat Developer Toolset packages that are available to you but not installed on your system, type the following command at a shell prompt:
yum list available devtoolset-6-\*
To install any of these optional packages, run as
yum install package_name
Replace package_name with a space-separated list of packages that you want to install. For example, to install the devtoolset-6-gdb-gdbserver and devtoolset-6-gdb-doc packages, type:
yum install devtoolset-6-gdb-gdbserver devtoolset-6-gdb-doc
1.5.4. Installing Debugging Information
To install debugging information for any of the Red Hat Developer Toolset packages, make sure that the yum-utils package is installed and run the following command as
For example, to install debugging information for the devtoolset-6-dwz package, type:
Note that in order to use this command, you need to have access to the repository with these packages. If your system is registered with Red Hat Subscription Management, enable the
rhel-variant-rhscl-version-debug-rpmsrepository as described in Section 1.4.1, “Using Red Hat Subscription Management”. If your system is registered with RHN Classic, subscribe the system to the
rhel-x86_64-variant-version-debuginfochannel as described in Section 1.4.2, “Using RHN Classic”. For more information on how to get access to debuginfo packages, see https://access.redhat.com/site/solutions/9907.
The devtoolset-6-package_name-debuginfo packages can conflict with the corresponding packages from the base Red Hat Enterprise Linux system or from other versions of Red Hat Developer Toolset. This conflict also occurs in a multilib environment, where 64-bit debuginfo packages conflict with 32-bit debuginfo packages. Manually uninstall the conflicting debuginfo packages prior to installing Red Hat Developer Toolset 6.1 and install only relevant debuginfo packages when necessary.