How to Install and Uninstall gcc-12 Package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Last updated: December 25,2024

1. Install "gcc-12" package

This is a short guide on how to install gcc-12 on Ubuntu 22.04 LTS (Jammy Jellyfish)

$ sudo apt update $ sudo apt install gcc-12

2. Uninstall "gcc-12" package

This guide let you learn how to uninstall gcc-12 on Ubuntu 22.04 LTS (Jammy Jellyfish):

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

3. Information about the gcc-12 package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Package: gcc-12
Architecture: amd64
Version: 12.3.0-1ubuntu1~22.04
Priority: optional
Section: devel
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 70069
Provides: c-compiler
Depends: cpp-12 (= 12.3.0-1ubuntu1~22.04), gcc-12-base (= 12.3.0-1ubuntu1~22.04), libcc1-0 (>= 12.3.0-1ubuntu1~22.04), binutils (>= 2.38), libgcc-12-dev (= 12.3.0-1ubuntu1~22.04), libc6 (>= 2.35), libgcc-s1 (>= 3.0), libgmp10 (>= 2:6.2.1+dfsg), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), libzstd1 (>= 1.4.0), 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.3.0-1ubuntu1~22.04_amd64.deb
Size: 21736002
MD5sum: f9a6e5c83d4dbf10898c4a1be69e38d5
SHA1: 534ecf6c5ebf2af7df15a1cf09f819703bf795e8
SHA256: 32f933d6e442fff52a259c657095ca9331dc814275b2a1a01cec636e5e859153
SHA512: ddadb533d8bf50cac3291c675fc1512766272b7a02a26198075506fe8f02e53e6f928447fae741835a0dc2e0bad381ca2e8885c9c6d5a7597f8491c0ff59ed66
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698

Package: gcc-12
Architecture: amd64
Version: 12-20220319-1ubuntu1
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: 227372
Provides: c-compiler
Depends: cpp-12 (= 12-20220319-1ubuntu1), gcc-12-base (= 12-20220319-1ubuntu1), libcc1-0 (>= 12-20220319-1ubuntu1), binutils (>= 2.38), libgcc-12-dev (= 12-20220319-1ubuntu1), libc6 (>= 2.35), libgcc-s1 (>= 3.0), libgmp10 (>= 2:6.2.1+dfsg), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), libzstd1 (>= 1.4.0), 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-20220319-1ubuntu1_amd64.deb
Size: 72944402
MD5sum: 666de6e434e291689bd2edbe982d6e6e
SHA1: 390d2f04249af34d65b597cc5fde1b03d90ff989
SHA256: af499f043e3f187da7369879fa5cf00684f20d73dbac35df73ea480b78d724e1
SHA512: e596fe67747e55cd20b4037e533532785cdce2ed4bde2dfd04e890171958ec93ef54c7331466c435058383a15673fe2c18c550b7f9264715ac8023a9d767ca09
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698