How to Install and Uninstall g++-11 Package on Ubuntu 24.04 LTS (Noble Numbat)

Last updated: November 22,2024

1. Install "g++-11" package

This guide let you learn how to install g++-11 on Ubuntu 24.04 LTS (Noble Numbat)

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

2. Uninstall "g++-11" package

Please follow the guidelines below to uninstall g++-11 on Ubuntu 24.04 LTS (Noble Numbat):

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

3. Information about the g++-11 package on Ubuntu 24.04 LTS (Noble Numbat)

Package: g++-11
Architecture: amd64
Version: 11.4.0-7ubuntu2
Priority: optional
Section: universe/devel
Source: gcc-11
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 28895
Provides: c++-compiler, c++abi2-dev
Depends: gcc-11-base (= 11.4.0-7ubuntu2), gcc-11 (= 11.4.0-7ubuntu2), libstdc++-11-dev (= 11.4.0-7ubuntu2), 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++-11-multilib, gcc-11-doc (>= 11)
Filename: pool/universe/g/gcc-11/g++-11_11.4.0-7ubuntu2_amd64.deb
Size: 11348354
MD5sum: a1c6c239e402789b30445c1eeefd6326
SHA1: d6f0b973a4ce692e0ad68234d7d93d00b09f14a4
SHA256: cf98470ad78ee6b03aa90768122d41a94ccf2adfc3eae19a9dd41a3d75624ade
SHA512: 6fdef1d2e30b2447ad8abbac9759f490f55b6f326629c8791a6f9870028191b27430af97dd0e00c03b0d19d67bb7405985c515767ead66d4057af6fb5747dd64
Homepage: http://gcc.gnu.org/
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c