How to Install and Uninstall g++-9 Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: May 19,2024

1. Install "g++-9" package

In this section, we are going to explain the necessary steps to install g++-9 on Ubuntu 20.04 LTS (Focal Fossa)

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

2. Uninstall "g++-9" package

Please follow the instructions below to uninstall g++-9 on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the g++-9 package on Ubuntu 20.04 LTS (Focal Fossa)

Package: g++-9
Architecture: amd64
Version: 9.4.0-1ubuntu1~20.04.2
Priority: optional
Build-Essential: yes
Section: devel
Source: gcc-9
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 28016
Provides: c++-compiler, c++abi2-dev
Depends: gcc-9-base (= 9.4.0-1ubuntu1~20.04.2), gcc-9 (= 9.4.0-1ubuntu1~20.04.2), libstdc++-9-dev (= 9.4.0-1ubuntu1~20.04.2), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl22 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: g++-9-multilib, gcc-9-doc (>= 8)
Filename: pool/main/g/gcc-9/g++-9_9.4.0-1ubuntu1~20.04.2_amd64.deb
Size: 8421356
MD5sum: 939c2ee6716748b8f80ea708c72c23af
SHA1: d5173ddaedbf7b5d76f1f731bb10a17d6c1745a3
SHA256: 2c617ef6d7e1809ded44e5a6d0ea2410ec4ec793765b91e892b6acc9a12ddb3c
SHA512: f83dd63fba1a6010af07c325ea7b5262968f044e79e121178bbe895b9363830de8833cd075ed90b816f4734c37d42fd95649344da334084a520993c5f29adefa
Homepage: http://gcc.gnu.org/
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c
Task: ubuntu-mate-core, ubuntu-mate-desktop

Package: g++-9
Architecture: amd64
Version: 9.3.0-10ubuntu2
Priority: optional
Section: devel
Source: gcc-9
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 27985
Provides: c++-compiler, c++abi2-dev
Depends: gcc-9-base (= 9.3.0-10ubuntu2), gcc-9 (= 9.3.0-10ubuntu2), libstdc++-9-dev (= 9.3.0-10ubuntu2), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl22 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: g++-9-multilib, gcc-9-doc (>= 8)
Filename: pool/main/g/gcc-9/g++-9_9.3.0-10ubuntu2_amd64.deb
Size: 8404272
MD5sum: 5007ef0d395d8594bf86a38fdb63cfee
SHA1: 0a2f11522788b1151aaf86814d6448212e6af7ea
SHA256: d3a28ee92e65e4f719fec86063bb83961b21fe52b737a967ba00936b32b72c12
Homepage: http://gcc.gnu.org/
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c
Task: ubuntu-mate-core, ubuntu-mate-desktop
Build-Essential: yes