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

Last updated: November 26,2024

1. Install "gcc-5" package

Please follow the steps below to install gcc-5 on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install gcc-5

2. Uninstall "gcc-5" package

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

$ sudo apt remove gcc-5 $ sudo apt autoclean && sudo apt autoremove

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

Package: gcc-5
Architecture: amd64
Version: 5.4.0-6ubuntu1~16.04.12
Priority: optional
Section: devel
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 23648
Provides: c-compiler
Depends: cpp-5 (= 5.4.0-6ubuntu1~16.04.12), gcc-5-base (= 5.4.0-6ubuntu1~16.04.12), libcc1-0 (>= 5.4.0-6ubuntu1~16.04.12), binutils (>= 2.26.1), libgcc-5-dev (= 5.4.0-6ubuntu1~16.04.12), libc6 (>= 2.15), libgcc1 (>= 1:3.0), libgmp10 (>= 2:5.0.1~), libisl15 (>= 0.15), libmpc3, libmpfr4 (>= 3.1.3), libstdc++6 (>= 4.1.1), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-5-multilib, gcc-5-doc (>= 5.2.1-23), gcc-5-locales (>= 5.2.1-23), libgcc1-dbg (>= 1:5.4.0-6ubuntu1~16.04.12), libgomp1-dbg (>= 5.4.0-6ubuntu1~16.04.12), libitm1-dbg (>= 5.4.0-6ubuntu1~16.04.12), libatomic1-dbg (>= 5.4.0-6ubuntu1~16.04.12), libasan2-dbg (>= 5.4.0-6ubuntu1~16.04.12), liblsan0-dbg (>= 5.4.0-6ubuntu1~16.04.12), libtsan0-dbg (>= 5.4.0-6ubuntu1~16.04.12), libubsan0-dbg (>= 5.4.0-6ubuntu1~16.04.12), libcilkrts5-dbg (>= 5.4.0-6ubuntu1~16.04.12), libmpx0-dbg (>= 5.4.0-6ubuntu1~16.04.12), libquadmath0-dbg (>= 5.4.0-6ubuntu1~16.04.12)
Replaces: gcc-5-base (<< 5-20150329-1), gcc-5-plugin-dev (<< 5-20150321-1), gccgo-5 (<< 5.4.0-6ubuntu1~16.04.12)
Filename: pool/main/g/gcc-5/gcc-5_5.4.0-6ubuntu1~16.04.12_amd64.deb
Size: 8612306
MD5sum: 834d3b09e44dadecdecac684376298ea
SHA1: 92c6e5b528d16b2079896cd3a07f38c0156e89c0
SHA256: 3abc0fb5bb783e484e874650030f6db5d0c6356eea7f51519f45750496c8aa19
SHA512: b6ec25f6027e6f681abab4796bfe164300627385167d6bdcab84d22eab6f70d6f72de7c6a3cbca3ccc0845ee2c1ba94f4f1f2553281c9d951ab5e04346c9827f
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: 394374e688b1afb3af5f419895d29698
Task: ubuntu-desktop, ubuntu-usb, kubuntu-desktop, kubuntu-full, edubuntu-desktop, edubuntu-usb, xubuntu-core, xubuntu-desktop, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntu-gnome-desktop, ubuntukylin-desktop
Build-Essential: yes
Supported: 5y

Package: gcc-5
Priority: optional
Section: devel
Installed-Size: 23656
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Architecture: amd64
Version: 5.3.1-14ubuntu2
Replaces: gcc-5-base (<< 5-20150329-1), gcc-5-plugin-dev (<< 5-20150321-1), gccgo-5 (<< 5.3.1-14ubuntu2)
Provides: c-compiler
Depends: cpp-5 (= 5.3.1-14ubuntu2), gcc-5-base (= 5.3.1-14ubuntu2), libcc1-0 (>= 5.3.1-14ubuntu2), binutils (>= 2.26), libgcc-5-dev (= 5.3.1-14ubuntu2), libc6 (>= 2.15), libgcc1 (>= 1:3.0), libgmp10 (>= 2:5.0.1~), libisl15 (>= 0.15), libmpc3, libmpfr4 (>= 3.1.3), libstdc++6 (>= 4.1.1), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-5-multilib, gcc-5-doc (>= 5.2.1-23), gcc-5-locales (>= 5.2.1-23), libgcc1-dbg (>= 1:5.3.1-14ubuntu2), libgomp1-dbg (>= 5.3.1-14ubuntu2), libitm1-dbg (>= 5.3.1-14ubuntu2), libatomic1-dbg (>= 5.3.1-14ubuntu2), libasan2-dbg (>= 5.3.1-14ubuntu2), liblsan0-dbg (>= 5.3.1-14ubuntu2), libtsan0-dbg (>= 5.3.1-14ubuntu2), libubsan0-dbg (>= 5.3.1-14ubuntu2), libcilkrts5-dbg (>= 5.3.1-14ubuntu2), libmpx0-dbg (>= 5.3.1-14ubuntu2), libquadmath0-dbg (>= 5.3.1-14ubuntu2)
Filename: pool/main/g/gcc-5/gcc-5_5.3.1-14ubuntu2_amd64.deb
Size: 8548582
MD5sum: b79d2a6c9c7ad71207da23b389d13f12
SHA1: d6cc21f35041e4574fb014b514c8f576edddc130
SHA256: 85826d448f1cda5bc2d1eacfd4651b4f304805ec9078713e72ef60e59f30ee52
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
Build-Essential: yes
Origin: Ubuntu
Supported: 5y
Task: ubuntu-desktop, ubuntu-usb, kubuntu-desktop, kubuntu-full, edubuntu-desktop, edubuntu-usb, xubuntu-core, xubuntu-desktop, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntu-gnome-desktop, ubuntukylin-desktop

5. The same packages on other Linux Distributions