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

Last updated: July 03,2024

1. Install "g++-9" package

This guide let you learn how to install g++-9 on Ubuntu 21.04 (Hirsute Hippo)

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

2. Uninstall "g++-9" package

This guide covers the steps necessary to uninstall g++-9 on Ubuntu 21.04 (Hirsute Hippo):

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

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

Package: g++-9
Architecture: amd64
Version: 9.3.0-23ubuntu2
Priority: optional
Section: universe/devel
Source: gcc-9
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 28002
Provides: c++-compiler, c++abi2-dev
Depends: gcc-9-base (= 9.3.0-23ubuntu2), gcc-9 (= 9.3.0-23ubuntu2), libstdc++-9-dev (= 9.3.0-23ubuntu2), libc6 (>= 2.33), libgmp10 (>= 2:5.0.1~), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), libmpfr6 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: g++-9-multilib, gcc-9-doc (>= 8)
Filename: pool/universe/g/gcc-9/g++-9_9.3.0-23ubuntu2_amd64.deb
Size: 8412692
MD5sum: 1538f3ca4d6d859f46789e1729980105
SHA1: 80ef389836e1d67be2d648c0aa94ae1bf54a1c92
SHA256: b2c71f20b5fcfa9f4ec17ed9a1eb25115915a04bf58a3cbc5b8d6f188a62e255
SHA512: 5726e59e073b4480868a2bc1d9e4817bee43d28624c3a3065b2c46ad6546b0a5342eed8e96da9f9124561b134ad8fffa691b8eb28b80a36bbadf75e940b15fcf
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