How to Install and Uninstall gcc-8 Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: May 20,2024

1. Install "gcc-8" package

Please follow the step by step instructions below to install gcc-8 on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install gcc-8

2. Uninstall "gcc-8" package

Learn how to uninstall gcc-8 on Ubuntu 21.04 (Hirsute Hippo):

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

3. Information about the gcc-8 package on Ubuntu 21.04 (Hirsute Hippo)

Package: gcc-8
Architecture: amd64
Version: 8.4.0-7ubuntu3
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: 29297
Provides: c-compiler
Depends: cpp-8 (= 8.4.0-7ubuntu3), gcc-8-base (= 8.4.0-7ubuntu3), libcc1-0 (>= 8.4.0-7ubuntu3), binutils (>= 2.36.1), libgcc-8-dev (= 8.4.0-7ubuntu3), libc6 (>= 2.33), libgcc-s1 (>= 3.0), libgmp10 (>= 2:5.0.1~), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), 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)
Replaces: cpp-8 (<< 7.1.1-8), gccgo-8 (<< 8.4.0-7ubuntu3)
Filename: pool/universe/g/gcc-8/gcc-8_8.4.0-7ubuntu3_amd64.deb
Size: 9801812
MD5sum: 4033b9d3228c9e8ed47892d23d972cc9
SHA1: c5aa176158f6a6c92395ec9a9caeeea342898527
SHA256: ed2adc8b960943e7c327d324be0632f9488704f17e697e3a4429465861057ce4
SHA512: 814e1f1983d635ed80035605ff705e53586a7837d39907eebb4384cd603343bcf3073337800516f4b2131f7308a81a454096aa3ea85c8dd3701ed612be774ed8
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