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

Last updated: May 20,2024

1. Install "g++-5" package

This is a short guide on how to install g++-5 on Ubuntu 18.04 LTS (Bionic Beaver)

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

2. Uninstall "g++-5" package

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

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

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

Package: g++-5
Architecture: amd64
Version: 5.5.0-12ubuntu1
Priority: optional
Section: universe/devel
Source: gcc-5
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 22769
Provides: c++-compiler, c++abi2-dev
Depends: gcc-5-base (= 5.5.0-12ubuntu1), gcc-5 (= 5.5.0-12ubuntu1), libstdc++-5-dev (= 5.5.0-12ubuntu1), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl15 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: g++-5-multilib, gcc-5-doc (>= 5.4.0-6), libstdc++6-5-dbg (>= 5.5.0-12ubuntu1)
Filename: pool/universe/g/gcc-5/g++-5_5.5.0-12ubuntu1_amd64.deb
Size: 8449656
MD5sum: 9eb2b4a829d9966949606d5968a32173
SHA1: cfb13bae32772ad2368e912e3de9ed3e4b12cb45
SHA256: 494ecb3fd64276b30dbbe24a49097ae9c906896abd1d324bbb2767f325210eca
Homepage: http://gcc.gnu.org/
Description: GNU C++ compiler
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c