How to Install and Uninstall gcc-toolset-12-gcc.x86_64 Package on CentOS Stream 9

Last updated: November 30,2024

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

Please follow the guidance below to install gcc-toolset-12-gcc.x86_64 on CentOS Stream 9

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

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

This tutorial shows how to uninstall gcc-toolset-12-gcc.x86_64 on CentOS Stream 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 CentOS Stream 9

Last metadata expiration check: 0:08:00 ago on Sat Mar 16 16:03:45 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 : appstream
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.