How to Install and Uninstall gcc-toolset-12-gcc.x86_64 Package on Red Hat Enterprise Linux 9 (RHEL 9)

Last updated: November 25,2024

1. Install "gcc-toolset-12-gcc.x86_64" package

In this section, we are going to explain the necessary steps to install gcc-toolset-12-gcc.x86_64 on Red Hat Enterprise Linux 9 (RHEL 9)

$ sudo dnf update $ sudo dnf install gcc-toolset-12-gcc.x86_64

2. Uninstall "gcc-toolset-12-gcc.x86_64" package

This guide covers the steps necessary to uninstall gcc-toolset-12-gcc.x86_64 on Red Hat Enterprise Linux 9 (RHEL 9):

$ sudo dnf remove gcc-toolset-12-gcc.x86_64 $ sudo dnf autoremove

3. Information about the gcc-toolset-12-gcc.x86_64 package on Red Hat Enterprise Linux 9 (RHEL 9)

Last metadata expiration check: 0:37:35 ago on Mon Feb 26 07:04:30 2024.
Available Packages
Name : gcc-toolset-12-gcc
Version : 12.2.1
Release : 7.4.el9
Architecture : x86_64
Size : 43 M
Source : gcc-toolset-12-gcc-12.2.1-7.4.el9.src.rpm
Repository : ubi-9-appstream-rpms
Summary : GCC version 12
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
Description : The gcc-toolset-12-gcc package contains the GNU Compiler Collection version 10.