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

Last updated: May 12,2024

1. Install "g++-12" package

In this section, we are going to explain the necessary steps to install g++-12 on Ubuntu 22.10 (Kinetic Kudu)

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

2. Uninstall "g++-12" package

This tutorial shows how to uninstall g++-12 on Ubuntu 22.10 (Kinetic Kudu):

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

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

Package: g++-12
Architecture: amd64
Version: 12.2.0-2ubuntu1
Priority: optional
Section: devel
Source: gcc-12
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 36847
Provides: c++-compiler, c++abi2-dev
Depends: gcc-12-base (= 12.2.0-2ubuntu1), gcc-12 (= 12.2.0-2ubuntu1), libstdc++-12-dev (= 12.2.0-2ubuntu1), libc6 (>= 2.36), libgmp10 (>= 2:6.2.1+dfsg1), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), libmpfr6 (>= 3.1.3), libzstd1 (>= 1.5.2), zlib1g (>= 1:1.1.4)
Suggests: g++-12-multilib, gcc-12-doc (>= 12)
Filename: pool/main/g/gcc-12/g++-12_12.2.0-2ubuntu1_amd64.deb
Size: 11991022
MD5sum: a7acbcdd35035c211351ab3d14585ad1
SHA1: b844854b1fb01a854edf895f10f944bbacb80b3d
SHA256: 76ca7684607673c53d34885186d9b37981b648a8aaf618b7e1e7335048f9644b
SHA512: 843e8f44fe8fbb467a535475b6cbd7a77e3402f1a0b94c0743fdf75256ae8e25a4c3a4a46402980f152891dab636e477b95d9498871e9ef0c72c578d4c499659
Homepage: http://gcc.gnu.org/
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c
Task: ubuntustudio-audio, ubuntustudio-publishing, ubuntu-mate-core, ubuntu-mate-desktop
Build-Essential: yes