How to Install and Uninstall gcc-12 Package on Ubuntu 22.10 (Kinetic Kudu)

Last updated: November 07,2024

1. Install "gcc-12" package

Please follow the instructions below to install gcc-12 on Ubuntu 22.10 (Kinetic Kudu)

$ sudo apt update $ sudo apt install gcc-12

2. Uninstall "gcc-12" package

In this section, we are going to explain the necessary steps to uninstall gcc-12 on Ubuntu 22.10 (Kinetic Kudu):

$ sudo apt remove gcc-12 $ sudo apt autoclean && sudo apt autoremove

3. Information about the gcc-12 package on Ubuntu 22.10 (Kinetic Kudu)

Package: gcc-12
Architecture: amd64
Version: 12.2.0-2ubuntu1
Priority: optional
Section: devel
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 69245
Provides: c-compiler
Depends: cpp-12 (= 12.2.0-2ubuntu1), gcc-12-base (= 12.2.0-2ubuntu1), libcc1-0 (>= 12.2.0-2ubuntu1), binutils (>= 2.39), libgcc-12-dev (= 12.2.0-2ubuntu1), libc6 (>= 2.36), libgcc-s1 (>= 3.0), libgmp10 (>= 2:6.2.1+dfsg1), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), libzstd1 (>= 1.5.2), 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/main/g/gcc-12/gcc-12_12.2.0-2ubuntu1_amd64.deb
Size: 21356290
MD5sum: 7d82167c578a64927fde79a060bf655d
SHA1: b80be0caaaa32b1eac8d50affe38129bc1774c85
SHA256: 2cee51cb901149a348b171228ddf0ed87b714c778fc4929477dfbd406a741152
SHA512: 8b3557fb9b495b0bd82ee543dde6a9b3becc633b288b3a06785e22c24ef77710a9beed98fec6249c69947430e3d5d01a14e3779da091f70bdb03ce77b74eb339
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698
Task: ubuntustudio-audio, ubuntustudio-publishing, ubuntu-mate-core, ubuntu-mate-desktop
Build-Essential: yes