How to Install and Uninstall g++-8 Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: November 26,2024

1. Install "g++-8" package

Here is a brief guide to show you how to install g++-8 on Ubuntu 18.04 LTS (Bionic Beaver)

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

2. Uninstall "g++-8" package

Please follow the instructions below to uninstall g++-8 on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the g++-8 package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: g++-8
Architecture: amd64
Version: 8.4.0-1ubuntu1~18.04
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: 26314
Provides: c++-compiler, c++abi2-dev
Depends: gcc-8-base (= 8.4.0-1ubuntu1~18.04), gcc-8 (= 8.4.0-1ubuntu1~18.04), libstdc++-8-dev (= 8.4.0-1ubuntu1~18.04), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl19 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: g++-8-multilib, gcc-8-doc (>= 8), libstdc++6-8-dbg (>= 8.4.0-1ubuntu1~18.04)
Filename: pool/universe/g/gcc-8/g++-8_8.4.0-1ubuntu1~18.04_amd64.deb
Size: 8121808
MD5sum: 08a80f2f8ae0ca10c8331c656a0e6218
SHA1: 643e294b5d802ba06a79c540d53e0ba022e52d0f
SHA256: b23142b9951ec4fbd53d27f031ac62ef3f4d99bc3f5a6701b8d94dd46194fd96
SHA512: 6c80ea8b7f8e6a5ff6cd1e1ac4b1a5d373134f02bc59a888b8b84c2fcc19504538d19a8acb8d25dfa0893d5c5a90440a3cf4958a8e796bd71f522b7bb107b174
Homepage: http://gcc.gnu.org/
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c

Package: g++-8
Architecture: amd64
Version: 8-20180414-1ubuntu2
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: 26263
Provides: c++-compiler, c++abi2-dev
Depends: gcc-8-base (= 8-20180414-1ubuntu2), gcc-8 (= 8-20180414-1ubuntu2), libstdc++-8-dev (= 8-20180414-1ubuntu2), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl19 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: g++-8-multilib, gcc-8-doc (>= 8), libstdc++6-8-dbg (>= 8-20180414-1ubuntu2)
Filename: pool/universe/g/gcc-8/g++-8_8-20180414-1ubuntu2_amd64.deb
Size: 8087508
MD5sum: 5ecfcb9a50839e1e6a0dd137285fc41e
SHA1: 4dc097d15f16bb9bb6f90b28da89f55fcd23a620
SHA256: 7b834ccb9f580c060256767786599ba886db0efff5954bf907ca9c11a823b725
Homepage: http://gcc.gnu.org/
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c