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 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 the product, see Section 1.4, “Getting Access to Red Hat Developer Toolset”.

Important

Before installing Red Hat Developer Toolset on a system that is already running the previous version of the product, make sure that the devtoolset-1.1-gcc-debuginfo is not installed. To uninstall this package from the system, type the following at a shell prompt as root:
yum remove devtoolset-1.1-gcc-debuginfo

Important

After installing Red Hat Developer Toolset, it is recommended to apply all available Red Hat Enterprise Linux errata updates to enable all Red Hat Developer Toolset features and apply fixes that may otherwise impact the tools or built code.

1.5.1. Installing All Available Components

To install all components that are included in this product, install the devtoolset-2 package by typing the following at a shell prompt as root:
yum install devtoolset-2
This installs the Eclipse development environment, all development, debugging, and performance monitoring tools, the scl utility 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”.

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.3, “Red Hat Developer Toolset Meta Packages”.

Table 1.3. Red Hat Developer Toolset Meta Packages

Package Name Description Installed Components
devtoolset-2-ide Integrated Development Environment Eclipse
devtoolset-2-perftools Performance monitoring tools SystemTap, Valgrind, OProfile, Dyninst
devtoolset-2-toolchain Development and debugging tools GCC, GDB, binutils, elfutils, dwz, memstomp, strace
devtoolset-2-vc Revision control systems Git

To install any of these meta packages, type the following at a shell prompt as root:
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 Eclipse development environment and packages that depend on it, type as root:
~]# yum install devtoolset-2-ide
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-2-\*
To install any of these optional packages, run as root:
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-2-gdb-gdbserver and devtoolset-2-gdb-doc packages, type:
~]# yum install devtoolset-2-gdb-gdbserver devtoolset-2-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 root:
debuginfo-install package_name
For example, to install debugging information for the devtoolset-2-dwz package, type:
~]# debuginfo-install devtoolset-2-dwz
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-dts2-version-debug-rpms repository as described in Section 1.4.2, “Using Red Hat Subscription Management”. If your system is registered with RHN Classic, subscribe the system to the rhel-architecture-variant-version-debuginfo channel as described in Section 1.4.1, “Using RHN Classic”. For more information on how to get access to debuginfo packages, see https://access.redhat.com/site/solutions/9907.