How to Install and Uninstall gcc-4.7 Package on Ubuntu 16.04 LTS (Xenial Xerus)
Last updated: March 11,2025
1. Install "gcc-4.7" package
Here is a brief guide to show you how to install gcc-4.7 on Ubuntu 16.04 LTS (Xenial Xerus)
$
sudo apt update
Copied
$
sudo apt install
gcc-4.7
Copied
2. Uninstall "gcc-4.7" package
Please follow the step by step instructions below to uninstall gcc-4.7 on Ubuntu 16.04 LTS (Xenial Xerus):
$
sudo apt remove
gcc-4.7
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the gcc-4.7 package on Ubuntu 16.04 LTS (Xenial Xerus)
Package: gcc-4.7
Priority: optional
Section: universe/devel
Installed-Size: 13709
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Architecture: amd64
Version: 4.7.4-3ubuntu12
Provides: c-compiler
Depends: gcc-4.7-base (= 4.7.4-3ubuntu12), cpp-4.7 (= 4.7.4-3ubuntu12), binutils (>= 2.25.90.20160101), libgcc-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)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-4.7-multilib, gcc-4.7-doc (>= 4.7.2-16), gcc-4.7-locales (>= 4.7.2-16), libgcc1-dbg (>= 1:4.7.4-3ubuntu12), libgomp1-dbg (>= 4.7.4-3ubuntu12), libitm1-dbg (>= 4.7.4-3ubuntu12), libquadmath0-dbg (>= 4.7.4-3ubuntu12), binutils-gold (>= 2.25.90.20160101)
Filename: pool/universe/g/gcc-4.7/gcc-4.7_4.7.4-3ubuntu12_amd64.deb
Size: 4677442
MD5sum: b482ee65602339a99112d84a050ae17a
SHA1: a8cba62509252b1181632432bacbfa64e3500c50
SHA256: 858a47727c6fb173dec782e11d9128ce5596351d7c5f3efe74fb48029030bde5
Description-en: GNU C compiler
This is the GNU C compiler, a fairly portable optimizing compiler for C.
Description-md5: 394374e688b1afb3af5f419895d29698
Homepage: http://gcc.gnu.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Priority: optional
Section: universe/devel
Installed-Size: 13709
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Architecture: amd64
Version: 4.7.4-3ubuntu12
Provides: c-compiler
Depends: gcc-4.7-base (= 4.7.4-3ubuntu12), cpp-4.7 (= 4.7.4-3ubuntu12), binutils (>= 2.25.90.20160101), libgcc-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)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-4.7-multilib, gcc-4.7-doc (>= 4.7.2-16), gcc-4.7-locales (>= 4.7.2-16), libgcc1-dbg (>= 1:4.7.4-3ubuntu12), libgomp1-dbg (>= 4.7.4-3ubuntu12), libitm1-dbg (>= 4.7.4-3ubuntu12), libquadmath0-dbg (>= 4.7.4-3ubuntu12), binutils-gold (>= 2.25.90.20160101)
Filename: pool/universe/g/gcc-4.7/gcc-4.7_4.7.4-3ubuntu12_amd64.deb
Size: 4677442
MD5sum: b482ee65602339a99112d84a050ae17a
SHA1: a8cba62509252b1181632432bacbfa64e3500c50
SHA256: 858a47727c6fb173dec782e11d9128ce5596351d7c5f3efe74fb48029030bde5
Description-en: GNU C compiler
This is the GNU C compiler, a fairly portable optimizing compiler for C.
Description-md5: 394374e688b1afb3af5f419895d29698
Homepage: http://gcc.gnu.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu