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

Last updated: May 28,2024

1. Install "g++-4.8" package

Please follow the guidance below to install g++-4.8 on Ubuntu 18.04 LTS (Bionic Beaver)

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

2. Uninstall "g++-4.8" package

This tutorial shows how to uninstall g++-4.8 on Ubuntu 18.04 LTS (Bionic Beaver):

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

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

Package: g++-4.8
Architecture: amd64
Version: 4.8.5-4ubuntu8
Priority: optional
Section: universe/devel
Source: gcc-4.8
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 26709
Provides: c++-compiler, c++abi2-dev
Depends: gcc-4.8-base (= 4.8.5-4ubuntu8), gcc-4.8 (= 4.8.5-4ubuntu8), libstdc++-4.8-dev (= 4.8.5-4ubuntu8), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libmpc3, libmpfr6 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: g++-4.8-multilib, gcc-4.8-doc (>= 4.8), libstdc++6-4.8-dbg (>= 4.8.5-4ubuntu8)
Filename: pool/universe/g/gcc-4.8/g++-4.8_4.8.5-4ubuntu8_amd64.deb
Size: 17581428
MD5sum: 9f62b7deca3b6c9705073b76451c2087
SHA1: 6ca84809a0e382913eb8aaf1e719c4e9fbc2d8ce
SHA256: 604223b9f7e624b7749a11e9a08acd44216b2375fbc1201bde2329a25b825975
Homepage: http://gcc.gnu.org/
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c