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

Last updated: November 26,2024

1. Install "g++-8" package

Please follow the guidance below to install g++-8 on Ubuntu 21.04 (Hirsute Hippo)

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

2. Uninstall "g++-8" package

In this section, we are going to explain the necessary steps to uninstall g++-8 on Ubuntu 21.04 (Hirsute Hippo):

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

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

Package: g++-8
Architecture: amd64
Version: 8.4.0-7ubuntu3
Priority: optional
Section: universe/devel
Source: gcc-8
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 27815
Provides: c++-compiler, c++abi2-dev
Depends: gcc-8-base (= 8.4.0-7ubuntu3), gcc-8 (= 8.4.0-7ubuntu3), libstdc++-8-dev (= 8.4.0-7ubuntu3), 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++-8-multilib, gcc-8-doc (>= 8)
Filename: pool/universe/g/gcc-8/g++-8_8.4.0-7ubuntu3_amd64.deb
Size: 10069812
MD5sum: 100ec14c8cbf425cd2ce91d97ecb6161
SHA1: 32f2dbf75ca4215149d96407b0b39e860c5ea527
SHA256: 382b7233b58d97ec4f9279af06f016414d34a03b8870f1c484e9b0df6cbead7d
SHA512: 70697bf3aaf8fd22bf6dc17d71f9c1d19bd4e69066c0b2165fda64c884d5b3c6d84d6fe09913609ff7d45de381b1e9532346f5f105e5cec136668ac43af08f80
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