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

Last updated: September 20,2024

1. Install "g++-4.9" package

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

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

2. Uninstall "g++-4.9" package

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

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

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

Package: g++-4.9
Priority: optional
Section: universe/devel
Installed-Size: 31883
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Architecture: amd64
Source: gcc-4.9
Version: 4.9.3-13ubuntu2
Provides: c++-compiler, c++abi2-dev
Depends: gcc-4.9-base (= 4.9.3-13ubuntu2), gcc-4.9 (= 4.9.3-13ubuntu2), libstdc++-4.9-dev (= 4.9.3-13ubuntu2), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libmpc3, libmpfr4 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: g++-4.9-multilib, gcc-4.9-doc (>= 4.9), libstdc++6-4.9-dbg (>= 4.9.3-13ubuntu2)
Filename: pool/universe/g/gcc-4.9/g++-4.9_4.9.3-13ubuntu2_amd64.deb
Size: 20984066
MD5sum: b8e38f989b3c671aee9e7c8a69928a22
SHA1: a5ec26783079c10643f9b904a274ce9e0f14ce66
SHA256: 23c212e454f4937d683abdb6e3cfd54c4011e724158fb0536d1797822ddd0d34
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