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

Last updated: July 04,2024

1. Install "g++-12" package

Please follow the guidance below to install g++-12 on Ubuntu 23.10 (Mantic Minotaur)

$ sudo apt update $ sudo apt install g++-12

2. Uninstall "g++-12" package

Please follow the guidelines below to uninstall g++-12 on Ubuntu 23.10 (Mantic Minotaur):

$ sudo apt remove g++-12 $ sudo apt autoclean && sudo apt autoremove

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

Package: g++-12
Architecture: amd64
Version: 12.3.0-9ubuntu2
Priority: optional
Section: universe/devel
Source: gcc-12
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 37284
Provides: c++-compiler, c++abi2-dev
Depends: gcc-12-base (= 12.3.0-9ubuntu2), gcc-12 (= 12.3.0-9ubuntu2), libstdc++-12-dev (= 12.3.0-9ubuntu2), libc6 (>= 2.38), libgmp10 (>= 2:6.3.0+dfsg), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), libmpfr6 (>= 3.1.3), libzstd1 (>= 1.5.5), zlib1g (>= 1:1.1.4)
Suggests: g++-12-multilib, gcc-12-doc (>= 12)
Filename: pool/universe/g/gcc-12/g++-12_12.3.0-9ubuntu2_amd64.deb
Size: 12097304
MD5sum: a2d38ba6a00711630bc13f0ab0c5f58c
SHA1: 77b1dc72fe17fd0524785f56baac6b71a17e1e33
SHA256: 8cdd40422ce06eceb69ac56a1bcf18846ee0be18c3ebee96f86b6648e0410686
SHA512: 9e7987f71f42eb028af04f5f423cf8d8ac5f29cfdedbbad52115b6f7cb0ca01542f22fa44247cfff42a0726baff917a524c61930f551baa0018bdd3bc2657f12
Homepage: http://gcc.gnu.org/
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c