How to Install and Uninstall gcc-12 Package on Ubuntu 23.10 (Mantic Minotaur)

Last updated: December 28,2024

1. Install "gcc-12" package

Please follow the guidelines below to install gcc-12 on Ubuntu 23.10 (Mantic Minotaur)

$ sudo apt update $ sudo apt install gcc-12

2. Uninstall "gcc-12" package

Please follow the instructions below to uninstall gcc-12 on Ubuntu 23.10 (Mantic Minotaur):

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

3. Information about the gcc-12 package on Ubuntu 23.10 (Mantic Minotaur)

Package: gcc-12
Architecture: amd64
Version: 12.3.0-9ubuntu2
Priority: optional
Section: devel
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 70137
Provides: c-compiler
Depends: cpp-12 (= 12.3.0-9ubuntu2), gcc-12-base (= 12.3.0-9ubuntu2), libcc1-0 (>= 12.3.0-9ubuntu2), binutils (>= 2.41), libgcc-12-dev (= 12.3.0-9ubuntu2), 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/main/g/gcc-12/gcc-12_12.3.0-9ubuntu2_amd64.deb
Size: 21641096
MD5sum: 638327519c068074ac77b17bad6efc7b
SHA1: ebddec1c91ed7976a00c6e36153fbf20cb56f3c3
SHA256: f593ba4b2c09c129992da58fffcf25077815c2c45f9ba26a3b007743c0bc4c24
SHA512: d4f35fe23a8f85d104c590b739215647658860fedd4c56b5d36084a4eec2c2c722e3e61d210798aa4c39962cb8598f1764b31af78ff839fbf8726236d8dfd98a
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698