How to Install and Uninstall g++ Package on Ubuntu 24.04 LTS (Noble Numbat)
Last updated: November 22,2024
1. Install "g++" package
Please follow the guidance below to install g++ on Ubuntu 24.04 LTS (Noble Numbat)
$
sudo apt update
Copied
$
sudo apt install
g++
Copied
2. Uninstall "g++" package
Here is a brief guide to show you how to uninstall g++ on Ubuntu 24.04 LTS (Noble Numbat):
$
sudo apt remove
g++
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the g++ package on Ubuntu 24.04 LTS (Noble Numbat)
Package: g++
Architecture: amd64
Version: 4:13.2.0-7ubuntu1
Priority: optional
Build-Essential: yes
Section: devel
Source: gcc-defaults (1.214ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 13
Provides: c++-compiler
Depends: cpp (= 4:13.2.0-7ubuntu1), cpp-x86-64-linux-gnu (= 4:13.2.0-7ubuntu1), gcc (= 4:13.2.0-7ubuntu1), g++-13 (>= 13.2.0-11~), g++-x86-64-linux-gnu (= 4:13.2.0-7ubuntu1), gcc-13 (>= 13.2.0-11~)
Suggests: g++-multilib
Filename: pool/main/g/gcc-defaults/g++_13.2.0-7ubuntu1_amd64.deb
Size: 1100
MD5sum: 4ad944aa44dc1e47976a60d89b854334
SHA1: 5fcf86dcc889a95ea95eec433f7c01f59e946271
SHA256: 800a84b369c64b18d65f0fb5c1533de0446c880ee4f1cadad64e3363327f63f0
SHA512: 5472831c47bd1bd163b72b1dcb253e081c0ecb724ea515548f8da4f0699f11fcf54bf8c33ab1e7f6f8a60d52f574662a9d0d5c945de188d3cde4dd4bab30145b
Description: GNU C++ compiler
Description-md5: 4d44b18774ae5123b7c3f70d940cf655
Task: ubuntustudio-publishing, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-unity-desktop, edubuntu-desktop-gnome-minimal, edubuntu-desktop-gnome, edubuntu-desktop-gnome-raspi, ubuntucinnamon-desktop, ubuntucinnamon-desktop-minimal
Architecture: amd64
Version: 4:13.2.0-7ubuntu1
Priority: optional
Build-Essential: yes
Section: devel
Source: gcc-defaults (1.214ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 13
Provides: c++-compiler
Depends: cpp (= 4:13.2.0-7ubuntu1), cpp-x86-64-linux-gnu (= 4:13.2.0-7ubuntu1), gcc (= 4:13.2.0-7ubuntu1), g++-13 (>= 13.2.0-11~), g++-x86-64-linux-gnu (= 4:13.2.0-7ubuntu1), gcc-13 (>= 13.2.0-11~)
Suggests: g++-multilib
Filename: pool/main/g/gcc-defaults/g++_13.2.0-7ubuntu1_amd64.deb
Size: 1100
MD5sum: 4ad944aa44dc1e47976a60d89b854334
SHA1: 5fcf86dcc889a95ea95eec433f7c01f59e946271
SHA256: 800a84b369c64b18d65f0fb5c1533de0446c880ee4f1cadad64e3363327f63f0
SHA512: 5472831c47bd1bd163b72b1dcb253e081c0ecb724ea515548f8da4f0699f11fcf54bf8c33ab1e7f6f8a60d52f574662a9d0d5c945de188d3cde4dd4bab30145b
Description: GNU C++ compiler
Description-md5: 4d44b18774ae5123b7c3f70d940cf655
Task: ubuntustudio-publishing, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-unity-desktop, edubuntu-desktop-gnome-minimal, edubuntu-desktop-gnome, edubuntu-desktop-gnome-raspi, ubuntucinnamon-desktop, ubuntucinnamon-desktop-minimal