How to Install and Uninstall g++-9 Package on Linux Mint 21 (Vanessa)

Last updated: May 16,2024

1. Install "g++-9" package

This tutorial shows how to install g++-9 on Linux Mint 21 (Vanessa)

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

2. Uninstall "g++-9" package

Please follow the steps below to uninstall g++-9 on Linux Mint 21 (Vanessa):

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

3. Information about the g++-9 package on Linux Mint 21 (Vanessa)

Package: g++-9
Architecture: amd64
Version: 9.5.0-1ubuntu1~22.04
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: 30350
Provides: c++-compiler, c++abi2-dev
Depends: gcc-9-base (= 9.5.0-1ubuntu1~22.04), gcc-9 (= 9.5.0-1ubuntu1~22.04), libstdc++-9-dev (= 9.5.0-1ubuntu1~22.04), libc6 (>= 2.34), libgmp10 (>= 2:6.2.1+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-1ubuntu1~22.04_amd64.deb
Size: 11889334
MD5sum: 2fde461b502e8d60ba9e9d7b86de4a56
SHA1: 0c809f29fefd27e040f55c6bd9b1766cb11f5365
SHA256: ee344ec6aaed69a6559e72eca80c94dc6ea551c6fca763dc55476a90e2f6dcc5
SHA512: bdc2189d20925033bf0e6bf75855f65e8de8453216a749d290b57fc7ab60fe4d998357ce8460d690ab5f4254d0e8b416edda575ea4fbc982c1e7f0502afa3b60
Homepage: http://gcc.gnu.org/
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c

Package: g++-9
Architecture: amd64
Version: 9.4.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: 28041
Provides: c++-compiler, c++abi2-dev
Depends: gcc-9-base (= 9.4.0-5ubuntu1), gcc-9 (= 9.4.0-5ubuntu1), libstdc++-9-dev (= 9.4.0-5ubuntu1), libc6 (>= 2.34), libgmp10 (>= 2:6.2.1+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.4.0-5ubuntu1_amd64.deb
Size: 9109656
MD5sum: 41d789225dad4979194a56ba0bfe1b78
SHA1: 565e06f50e26dedd4890a9b1af830a8fbcddc9e0
SHA256: 2feb447931cc4b941c2923b5dc723cc28867b2baef4d7308e0e23f7eb223514a
SHA512: dcf5a62ec48a4bb564061a5de8995745903db6fe835f425a02f0d5c54462724d42be50714abf6f64958c5fecde85f5cd2ad70697c2e577b66471ef4737e2ed2d
Homepage: http://gcc.gnu.org/
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c