How to Install and Uninstall g++-11 Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: June 18,2024

1. Install "g++-11" package

Please follow the steps below to install g++-11 on Ubuntu 21.04 (Hirsute Hippo)

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

2. Uninstall "g++-11" package

Please follow the steps below to uninstall g++-11 on Ubuntu 21.04 (Hirsute Hippo):

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

3. Information about the g++-11 package on Ubuntu 21.04 (Hirsute Hippo)

Package: g++-11
Architecture: amd64
Version: 11.1.0-1ubuntu1~21.04
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: 28692
Provides: c++-compiler, c++abi2-dev
Depends: gcc-11-base (= 11.1.0-1ubuntu1~21.04), gcc-11 (= 11.1.0-1ubuntu1~21.04), libstdc++-11-dev (= 11.1.0-1ubuntu1~21.04), libc6 (>= 2.33), libgmp10 (>= 2:5.0.1~), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), libmpfr6 (>= 3.1.3), libzstd1 (>= 1.3.2), zlib1g (>= 1:1.1.4)
Suggests: g++-11-multilib, gcc-11-doc (>= 11)
Filename: pool/universe/g/gcc-11/g++-11_11.1.0-1ubuntu1~21.04_amd64.deb
Size: 10544624
MD5sum: d46f53dbf74e2678b79af3137884c99c
SHA1: 30afce415404baa2911d990189ac836218efb8dc
SHA256: 753dec39b1ffbffae15d2bf8250f274087dc399f8e831450f014c52413cf6e03
SHA512: 77367752fccc3329ecee9625f9568e2d420f08e802b671320bf947b0cc6d38ee4907ea77a94d13b5f26254d17cc0c07e39fd91aa794a5a8dc48f3d917313fabb
Homepage: http://gcc.gnu.org/
Description-en: GNU C++ compiler
This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c

Package: g++-11
Architecture: amd64
Version: 11-20210417-1ubuntu1
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: 191096
Provides: c++-compiler, c++abi2-dev
Depends: gcc-11-base (= 11-20210417-1ubuntu1), gcc-11 (= 11-20210417-1ubuntu1), libstdc++-11-dev (= 11-20210417-1ubuntu1), libc6 (>= 2.33), libgmp10 (>= 2:5.0.1~), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), libmpfr6 (>= 3.1.3), libzstd1 (>= 1.3.2), zlib1g (>= 1:1.1.4)
Suggests: g++-11-multilib, gcc-11-doc (>= 11)
Filename: pool/universe/g/gcc-11/g++-11_11-20210417-1ubuntu1_amd64.deb
Size: 50432716
MD5sum: cea8a140e7d99e7bcd4feff14b72c9cc
SHA1: 3b061970cde1a86f4640c0fb589e47143f9f9891
SHA256: 93a0807eadb55a275ca017ea095e0c4fe344497365ae8d4eb181c60e523945be
SHA512: 01bde54460294c5ba240a77a96f0ffba1fccec5f6d338a7b06f99da340a6b02dd05b8989ced0e412bda2010a0fcb2388945ab4a1b9670d8447d8d3247fffed94
Homepage: http://gcc.gnu.org/
Description-en: GNU C++ compiler
This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c