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

Last updated: December 24,2024

1. Install "g++" package

Learn how to install g++ on Ubuntu 22.10 (Kinetic Kudu)

$ sudo apt update $ sudo apt install g++

2. Uninstall "g++" package

Learn how to uninstall g++ on Ubuntu 22.10 (Kinetic Kudu):

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

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

Package: g++
Architecture: amd64
Version: 4:12.2.0-1ubuntu1
Priority: optional
Section: devel
Source: gcc-defaults (1.201ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 16
Provides: c++-compiler, g++-x86-64-linux-gnu (= 4:12.2.0-1ubuntu1)
Depends: cpp (= 4:12.2.0-1ubuntu1), gcc (= 4:12.2.0-1ubuntu1), g++-12 (>= 12.2.0-1~), gcc-12 (>= 12.2.0-1~)
Suggests: g++-multilib
Filename: pool/main/g/gcc-defaults/g++_12.2.0-1ubuntu1_amd64.deb
Size: 1406
MD5sum: d567dd7e70d955d06515aa1f69c7d843
SHA1: 26bfff91655eb387a568897a6345077ae95f05c6
SHA256: 49296ce1279602ca06961604747461a341078437453685f26d70f599d1083c61
SHA512: 8f066a194e88be45ae1bd01e243e782eef513402a42a2a30a788fa5c2a747a5ad184c8f6405076285b32f58499c7db800b252437c97a5e7fe24f6e55ff903980
Description: GNU C++ compiler
Description-md5: 4d44b18774ae5123b7c3f70d940cf655
Task: ubuntustudio-audio, ubuntustudio-publishing, ubuntu-mate-core, ubuntu-mate-desktop
Build-Essential: yes