How to Install and Uninstall gcc-5 Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: June 29,2024

1. Install "gcc-5" package

This tutorial shows how to install gcc-5 on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install gcc-5

2. Uninstall "gcc-5" package

Please follow the guidelines below to uninstall gcc-5 on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the gcc-5 package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: gcc-5
Architecture: amd64
Version: 5.5.0-12ubuntu1
Priority: optional
Section: universe/devel
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 23729
Provides: c-compiler
Depends: cpp-5 (= 5.5.0-12ubuntu1), gcc-5-base (= 5.5.0-12ubuntu1), libcc1-0 (>= 5.5.0-12ubuntu1), binutils (>= 2.30), libgcc-5-dev (= 5.5.0-12ubuntu1), libc6 (>= 2.15), libgcc1 (>= 1:3.0), libgmp10 (>= 2:5.0.1~), libisl15 (>= 0.15), libmpc3, libmpfr6 (>= 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.4.0-6), gcc-5-locales (>= 5.4.0-6), libgcc1-dbg (>= 1:5.5.0-12ubuntu1), libgomp1-dbg (>= 5.5.0-12ubuntu1), libitm1-dbg (>= 5.5.0-12ubuntu1), libatomic1-dbg (>= 5.5.0-12ubuntu1), libasan2-dbg (>= 5.5.0-12ubuntu1), liblsan0-dbg (>= 5.5.0-12ubuntu1), libtsan0-dbg (>= 5.5.0-12ubuntu1), libubsan0-dbg (>= 5.5.0-12ubuntu1), libcilkrts5-dbg (>= 5.5.0-12ubuntu1), libmpx0-dbg (>= 5.5.0-12ubuntu1), libquadmath0-dbg (>= 5.5.0-12ubuntu1)
Replaces: gcc-5-base (<< 5-20150329-1), gcc-5-plugin-dev (<< 5-20150321-1), gccgo-5 (<< 5.5.0-12ubuntu1)
Filename: pool/universe/g/gcc-5/gcc-5_5.5.0-12ubuntu1_amd64.deb
Size: 8357108
MD5sum: 9d531c3864b958ce36e3948a06f1cf2b
SHA1: 44edc30c2409f1af76a6b26d159daa65401a4924
SHA256: e9049c54351d9bb15cae00672f47dcd904539e62efa51a9cf7a5ffade5ba4e04
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698

5. The same packages on other Linux Distributions