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

Last updated: November 25,2024

1. Install "g++-5" package

Learn how to install g++-5 on Ubuntu 16.04 LTS (Xenial Xerus)

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

2. Uninstall "g++-5" package

Here is a brief guide to show you how to uninstall g++-5 on Ubuntu 16.04 LTS (Xenial Xerus):

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

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

Package: g++-5
Architecture: amd64
Version: 5.4.0-6ubuntu1~16.04.12
Priority: optional
Section: devel
Source: gcc-5
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 22851
Provides: c++-compiler, c++abi2-dev
Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.12), gcc-5 (= 5.4.0-6ubuntu1~16.04.12), libstdc++-5-dev (= 5.4.0-6ubuntu1~16.04.12), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl15 (>= 0.15), libmpc3, libmpfr4 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: g++-5-multilib, gcc-5-doc (>= 5.2.1-23), libstdc++6-5-dbg (>= 5.4.0-6ubuntu1~16.04.12)
Filename: pool/main/g/gcc-5/g++-5_5.4.0-6ubuntu1~16.04.12_amd64.deb
Size: 8429590
MD5sum: 3014dda89b16acf023a806433840c5ef
SHA1: b7db70a792172e1e16f549fb51091e6368d5381c
SHA256: 6c09254ac1f78a2f7a2c4c28cadb200d697121ce1af060603618eb12e7b6a385
SHA512: 5e60be4bad812ac2146493d3ddd03e69e5366dc8f9a32cca7a62d32a62789f1f3d6cf83bf39a3fe8756af26332d4c473f2068a79c44a857377c94ac20943cb04
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
Task: ubuntu-desktop, ubuntu-usb, edubuntu-desktop, edubuntu-usb, ubuntustudio-audio, ubuntukylin-desktop
Build-Essential: yes
Supported: 5y

Package: g++-5
Priority: optional
Section: devel
Installed-Size: 22855
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Architecture: amd64
Source: gcc-5
Version: 5.3.1-14ubuntu2
Provides: c++-compiler, c++abi2-dev
Depends: gcc-5-base (= 5.3.1-14ubuntu2), gcc-5 (= 5.3.1-14ubuntu2), libstdc++-5-dev (= 5.3.1-14ubuntu2), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl15 (>= 0.15), libmpc3, libmpfr4 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: g++-5-multilib, gcc-5-doc (>= 5.2.1-23), libstdc++6-5-dbg (>= 5.3.1-14ubuntu2)
Filename: pool/main/g/gcc-5/g++-5_5.3.1-14ubuntu2_amd64.deb
Size: 8433074
MD5sum: 023284e68d96fe5423ef29a202b1e63e
SHA1: b2ee1f13b1cdff4dd8e827fe624776925fc9af98
SHA256: 6d2869c96e3e0064ef9c00dc097466cc3bb7ae3eeff5da05ad9e18a4cbac8208
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
Build-Essential: yes
Origin: Ubuntu
Supported: 5y
Task: ubuntu-desktop, ubuntu-usb, edubuntu-desktop, edubuntu-usb, ubuntustudio-audio, ubuntukylin-desktop