How to Install and Uninstall gcc-12 Package on Ubuntu 24.04 LTS (Noble Numbat)
Last updated: November 26,2024
1. Install "gcc-12" package
This guide covers the steps necessary to install gcc-12 on Ubuntu 24.04 LTS (Noble Numbat)
$
sudo apt update
Copied
$
sudo apt install
gcc-12
Copied
2. Uninstall "gcc-12" package
This is a short guide on how to uninstall gcc-12 on Ubuntu 24.04 LTS (Noble Numbat):
$
sudo apt remove
gcc-12
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the gcc-12 package on Ubuntu 24.04 LTS (Noble Numbat)
Package: gcc-12
Architecture: amd64
Version: 12.3.0-15ubuntu1
Priority: optional
Section: universe/devel
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 70152
Provides: c-compiler
Depends: cpp-12 (= 12.3.0-15ubuntu1), gcc-12-base (= 12.3.0-15ubuntu1), libcc1-0 (>= 12.3.0-15ubuntu1), binutils (>= 2.42), libgcc-12-dev (= 12.3.0-15ubuntu1), libc6 (>= 2.38), libgcc-s1 (>= 3.0), libgmp10 (>= 2:6.3.0+dfsg), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), libzstd1 (>= 1.5.5), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-12-multilib, gcc-12-doc (>= 12), gcc-12-locales (>= 12)
Replaces: cpp-12 (<< 7.1.1-8)
Filename: pool/universe/g/gcc-12/gcc-12_12.3.0-15ubuntu1_amd64.deb
Size: 21648148
MD5sum: a351eab849ce5a6cba27cf3d96525122
SHA1: 1d2d6e09fc63e7ab637ca37463bcd92d7f676d82
SHA256: 68ca75b5f54b6e3ae61d6ef9a03ebb1cdfaa2b91eea9e1a6921db4f61838e168
SHA512: 5ef27e89cf15a133c2b323e10eff8c968c62018d743ad139d4124cc021802697fc841c7f63b833937abc143faaea3502f9c2d05d99b91936b8d67d5b8f34a8db
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698
Architecture: amd64
Version: 12.3.0-15ubuntu1
Priority: optional
Section: universe/devel
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 70152
Provides: c-compiler
Depends: cpp-12 (= 12.3.0-15ubuntu1), gcc-12-base (= 12.3.0-15ubuntu1), libcc1-0 (>= 12.3.0-15ubuntu1), binutils (>= 2.42), libgcc-12-dev (= 12.3.0-15ubuntu1), libc6 (>= 2.38), libgcc-s1 (>= 3.0), libgmp10 (>= 2:6.3.0+dfsg), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), libzstd1 (>= 1.5.5), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-12-multilib, gcc-12-doc (>= 12), gcc-12-locales (>= 12)
Replaces: cpp-12 (<< 7.1.1-8)
Filename: pool/universe/g/gcc-12/gcc-12_12.3.0-15ubuntu1_amd64.deb
Size: 21648148
MD5sum: a351eab849ce5a6cba27cf3d96525122
SHA1: 1d2d6e09fc63e7ab637ca37463bcd92d7f676d82
SHA256: 68ca75b5f54b6e3ae61d6ef9a03ebb1cdfaa2b91eea9e1a6921db4f61838e168
SHA512: 5ef27e89cf15a133c2b323e10eff8c968c62018d743ad139d4124cc021802697fc841c7f63b833937abc143faaea3502f9c2d05d99b91936b8d67d5b8f34a8db
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698