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

Last updated: November 22,2024

1. Install "g++-9" package

Please follow the guidelines below to install g++-9 on Ubuntu 24.04 LTS (Noble Numbat)

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

2. Uninstall "g++-9" package

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

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

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

Package: g++-9
Architecture: amd64
Version: 9.5.0-5ubuntu1
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: 30349
Provides: c++-compiler, c++abi2-dev
Depends: gcc-9-base (= 9.5.0-5ubuntu1), gcc-9 (= 9.5.0-5ubuntu1), libstdc++-9-dev (= 9.5.0-5ubuntu1), libc6 (>= 2.38), libgmp10 (>= 2:6.3.0+dfsg), 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.5.0-5ubuntu1_amd64.deb
Size: 11803020
MD5sum: 7b024416edae83854708ab6cacc357d3
SHA1: 08d607d3aed7f55b3dcb073671857d42406dd24a
SHA256: fe4cc15d80744ea5845ccca7db6fb2317f09c7b141a43efa987310c2763e8e20
SHA512: 3f74e33ba918a24f413ec235c60483fc6878af87359c200819d6b074e670f0882f1dde4e1f4dd4e626e26f44b097ca6ddfca0352cfea7d33d0a07bf9a700ed47
Homepage: http://gcc.gnu.org/
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c