How to Install and Uninstall g++-4.8 Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 20,2024

1. Install "g++-4.8" package

This guide let you learn how to install g++-4.8 on Ubuntu 16.04 LTS (Xenial Xerus)

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

2. Uninstall "g++-4.8" package

Please follow the step by step instructions below to uninstall g++-4.8 on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the g++-4.8 package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: g++-4.8
Priority: optional
Section: universe/devel
Installed-Size: 27949
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Architecture: amd64
Source: gcc-4.8
Version: 4.8.5-4ubuntu2
Provides: c++-compiler, c++abi2-dev
Depends: gcc-4.8-base (= 4.8.5-4ubuntu2), gcc-4.8 (= 4.8.5-4ubuntu2), libstdc++-4.8-dev (= 4.8.5-4ubuntu2), libc6 (>= 2.14), libcloog-isl4 (>= 0.17), libgmp10 (>= 2:5.0.1~), libisl15 (>= 0.15), libmpc3, libmpfr4 (>= 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-4ubuntu2)
Filename: pool/universe/g/gcc-4.8/g++-4.8_4.8.5-4ubuntu2_amd64.deb
Size: 18185312
MD5sum: 7060b0fa08a8fd031f234e5520ee84e9
SHA1: d995a0d43ae091b092d7c4cb6e147a5360eb1a9e
SHA256: 1c9e18daa2c21fd3e9eea4e7f9739b30dedd1baa38674947d3bd9e2895746e96
Description-en: GNU C++ compiler
This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c
Homepage: http://gcc.gnu.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu