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

Last updated: May 20,2024

1. Install "g++-4.7" package

Please follow the steps below to install g++-4.7 on Ubuntu 16.04 LTS (Xenial Xerus)

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

2. Uninstall "g++-4.7" package

Please follow the steps below to uninstall g++-4.7 on Ubuntu 16.04 LTS (Xenial Xerus):

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

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

Package: g++-4.7
Priority: optional
Section: universe/devel
Installed-Size: 16786
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Architecture: amd64
Source: gcc-4.7
Version: 4.7.4-3ubuntu12
Provides: c++-compiler, c++abi2-dev
Depends: gcc-4.7-base (= 4.7.4-3ubuntu12), gcc-4.7 (= 4.7.4-3ubuntu12), libstdc++6-4.7-dev (= 4.7.4-3ubuntu12), libc6 (>= 2.14), libcloog-pplv4-1, libgmp10, libmpc3, libmpfr4 (>= 3.1.3), libpplv4-c4, zlib1g (>= 1:1.1.4)
Suggests: g++-4.7-multilib, gcc-4.7-doc (>= 4.7.2-16), libstdc++6-4.7-dbg (>= 4.7.4-3ubuntu12)
Filename: pool/universe/g/gcc-4.7/g++-4.7_4.7.4-3ubuntu12_amd64.deb
Size: 7250766
MD5sum: 6f1eea691d4013cab36afbb656f0cd27
SHA1: 713c05c1c5858052a3224f76c4fb67c6d3dfb083
SHA256: 24215e74b5eb7d6bb030914b615628660236b64aea4cbd23c0d1e4caaf3954df
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