How to Install and Uninstall g++-9 Package on Ubuntu 21.10 (Impish Indri)

Last updated: October 06,2024

1. Install "g++-9" package

This tutorial shows how to install g++-9 on Ubuntu 21.10 (Impish Indri)

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

2. Uninstall "g++-9" package

In this section, we are going to explain the necessary steps to uninstall g++-9 on Ubuntu 21.10 (Impish Indri):

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

3. Information about the g++-9 package on Ubuntu 21.10 (Impish Indri)

Package: g++-9
Architecture: amd64
Version: 9.4.0-3ubuntu1
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: 28041
Provides: c++-compiler, c++abi2-dev
Depends: gcc-9-base (= 9.4.0-3ubuntu1), gcc-9 (= 9.4.0-3ubuntu1), libstdc++-9-dev (= 9.4.0-3ubuntu1), libc6 (>= 2.34), 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.4.0-3ubuntu1_amd64.deb
Size: 9110954
MD5sum: cc01c5b8bb6df2fc2aab41d342b9d5a4
SHA1: b5a14e0fc981851512bce9b5f3ad08e89e884b37
SHA256: 98e181b3d13d08f13c3e6c47e32763764d70add540093e7e34d59cee70b6a4c0
SHA512: 1d4cb3e076ef47d7f85b7a4b414fe817af5b1e9900d6a272d900e50545398ead3fbaa4468af91c9bbcdf5b0a6037164d06d00009ab244f5135c96d8af70a7156
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