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

Last updated: December 24,2024

1. Install "gcc-8" package

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

$ sudo apt update $ sudo apt install gcc-8

2. Uninstall "gcc-8" package

Please follow the step by step instructions below to uninstall gcc-8 on Ubuntu 18.04 LTS (Bionic Beaver):

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

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

Package: gcc-8
Architecture: amd64
Version: 8.4.0-1ubuntu1~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: 28035
Provides: c-compiler
Depends: cpp-8 (= 8.4.0-1ubuntu1~18.04), gcc-8-base (= 8.4.0-1ubuntu1~18.04), libcc1-0 (>= 8.4.0-1ubuntu1~18.04), binutils (>= 2.30), libgcc-8-dev (= 8.4.0-1ubuntu1~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-8-multilib, gcc-8-doc (>= 8), gcc-8-locales (>= 8), libgcc1-dbg (>= 1:8.4.0-1ubuntu1~18.04), libgomp1-dbg (>= 8.4.0-1ubuntu1~18.04), libitm1-dbg (>= 8.4.0-1ubuntu1~18.04), libatomic1-dbg (>= 8.4.0-1ubuntu1~18.04), libasan5-dbg (>= 8.4.0-1ubuntu1~18.04), liblsan0-dbg (>= 8.4.0-1ubuntu1~18.04), libtsan0-dbg (>= 8.4.0-1ubuntu1~18.04), libubsan1-dbg (>= 8.4.0-1ubuntu1~18.04), libmpx2-dbg (>= 8.4.0-1ubuntu1~18.04), libquadmath0-dbg (>= 8.4.0-1ubuntu1~18.04)
Replaces: cpp-8 (<< 7.1.1-8), gccgo-8 (<< 8.4.0-1ubuntu1~18.04)
Filename: pool/universe/g/gcc-8/gcc-8_8.4.0-1ubuntu1~18.04_amd64.deb
Size: 8043656
MD5sum: 732e3dd14b00c8595d28b4887a0b98dd
SHA1: 50ca3e911b31916e1b59adab87d0709d3627c8c5
SHA256: 0d5e1f785fdd0f03638444abbff903b64a61704361d1cd93b47007ab5dd2f97c
SHA512: e36f30d6384450a5520a0437005a02194ea8fe5cb085c2d22bf108578b767813fea4880c8766e91fafc072198e350cf471b71c46d5f1e924816d6f22a5e2e69f
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698
Supported: 3y

Package: gcc-8
Architecture: amd64
Version: 8-20180414-1ubuntu2
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: 27939
Provides: c-compiler
Depends: cpp-8 (= 8-20180414-1ubuntu2), gcc-8-base (= 8-20180414-1ubuntu2), libcc1-0 (>= 8-20180414-1ubuntu2), binutils (>= 2.30), libgcc-8-dev (= 8-20180414-1ubuntu2), 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-8-multilib, gcc-8-doc (>= 8), gcc-8-locales (>= 8), libgcc1-dbg (>= 1:8-20180414-1ubuntu2), libgomp1-dbg (>= 8-20180414-1ubuntu2), libitm1-dbg (>= 8-20180414-1ubuntu2), libatomic1-dbg (>= 8-20180414-1ubuntu2), libasan5-dbg (>= 8-20180414-1ubuntu2), liblsan0-dbg (>= 8-20180414-1ubuntu2), libtsan0-dbg (>= 8-20180414-1ubuntu2), libubsan1-dbg (>= 8-20180414-1ubuntu2), libmpx2-dbg (>= 8-20180414-1ubuntu2), libquadmath0-dbg (>= 8-20180414-1ubuntu2)
Replaces: cpp-8 (<< 7.1.1-8), gccgo-8 (<< 8-20180414-1ubuntu2)
Filename: pool/universe/g/gcc-8/gcc-8_8-20180414-1ubuntu2_amd64.deb
Size: 7952576
MD5sum: bd998acd0a6fc6303ada17b25c748294
SHA1: 73041c5b5206942e83271c8125ea2cfffd5bc589
SHA256: c60ed94e09c88a245b28741f4f2908a2aef4678b395df6420afbab5326255a91
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698
Supported: 3y