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

Last updated: July 05,2024

1. Install "gcc-6" package

Please follow the steps below to install gcc-6 on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install gcc-6

2. Uninstall "gcc-6" package

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

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

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

Package: gcc-6
Architecture: amd64
Version: 6.5.0-2ubuntu1~18.04
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: 24665
Provides: c-compiler
Depends: cpp-6 (= 6.5.0-2ubuntu1~18.04), gcc-6-base (= 6.5.0-2ubuntu1~18.04), libcc1-0 (>= 6.5.0-2ubuntu1~18.04), binutils (>= 2.30), libgcc-6-dev (= 6.5.0-2ubuntu1~18.04), libc6 (>= 2.15), libgcc1 (>= 1:3.0), libgmp10 (>= 2:5.0.1~), libisl19 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-6-multilib, gcc-6-doc (>= 6.3.0-1), gcc-6-locales (>= 6.3.0-1), libgcc1-dbg (>= 1:6.5.0-2ubuntu1~18.04), libgomp1-dbg (>= 6.5.0-2ubuntu1~18.04), libitm1-dbg (>= 6.5.0-2ubuntu1~18.04), libatomic1-dbg (>= 6.5.0-2ubuntu1~18.04), libasan3-dbg (>= 6.5.0-2ubuntu1~18.04), liblsan0-dbg (>= 6.5.0-2ubuntu1~18.04), libtsan0-dbg (>= 6.5.0-2ubuntu1~18.04), libubsan0-dbg (>= 6.5.0-2ubuntu1~18.04), libcilkrts5-dbg (>= 6.5.0-2ubuntu1~18.04), libmpx2-dbg (>= 6.5.0-2ubuntu1~18.04), libquadmath0-dbg (>= 6.5.0-2ubuntu1~18.04)
Replaces: cpp-6 (<< 6.3.0-21), gccgo-6 (<< 6.5.0-2ubuntu1~18.04)
Filename: pool/universe/g/gcc-6/gcc-6_6.5.0-2ubuntu1~18.04_amd64.deb
Size: 7067112
MD5sum: 502e6a0370d93b01606031a28be15dc2
SHA1: d3e4547529820a949f2741ac5429700fc3346ab2
SHA256: 9a862fe58bbb0e388716fb6edb433e8ac363a7ad5bd7d77fc4dc7cc7728de31d
SHA512: e54212f79cb596496765b004bacd01816217f2a9edb9aff2b439b2de7f36e732a2d041446c68e494dee8eeb866cedd64a619878559eadceb3f85750bb4fa4cce
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698

Package: gcc-6
Architecture: amd64
Version: 6.4.0-17ubuntu1
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: 24639
Provides: c-compiler
Depends: cpp-6 (= 6.4.0-17ubuntu1), gcc-6-base (= 6.4.0-17ubuntu1), libcc1-0 (>= 6.4.0-17ubuntu1), binutils (>= 2.30), libgcc-6-dev (= 6.4.0-17ubuntu1), libc6 (>= 2.15), libgcc1 (>= 1:3.0), libgmp10 (>= 2:5.0.1~), libisl19 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-6-multilib, gcc-6-doc (>= 6.3.0-1), gcc-6-locales (>= 6.3.0-1), libgcc1-dbg (>= 1:6.4.0-17ubuntu1), libgomp1-dbg (>= 6.4.0-17ubuntu1), libitm1-dbg (>= 6.4.0-17ubuntu1), libatomic1-dbg (>= 6.4.0-17ubuntu1), libasan3-dbg (>= 6.4.0-17ubuntu1), liblsan0-dbg (>= 6.4.0-17ubuntu1), libtsan0-dbg (>= 6.4.0-17ubuntu1), libubsan0-dbg (>= 6.4.0-17ubuntu1), libcilkrts5-dbg (>= 6.4.0-17ubuntu1), libmpx2-dbg (>= 6.4.0-17ubuntu1), libquadmath0-dbg (>= 6.4.0-17ubuntu1)
Replaces: cpp-6 (<< 6.3.0-21), gccgo-6 (<< 6.4.0-17ubuntu1)
Filename: pool/universe/g/gcc-6/gcc-6_6.4.0-17ubuntu1_amd64.deb
Size: 7054352
MD5sum: 96fd4657be2d8caf3203562b90e5122c
SHA1: a5c9640082ca346eeac8c5f74471af072f10a0f7
SHA256: 2736254ea1d29ed0cdbf213dfecf5358f3c2e6c5d47828445e38fed624c4b93f
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698