How to Install and Uninstall gcc-8 Package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Last updated: May 19,2024

1. Install "gcc-8" package

In this section, we are going to explain the necessary steps to install gcc-8 on Ubuntu 22.04 LTS (Jammy Jellyfish)

$ sudo apt update $ sudo apt install gcc-8

2. Uninstall "gcc-8" package

Learn how to uninstall gcc-8 on Ubuntu 22.04 LTS (Jammy Jellyfish):

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

3. Information about the gcc-8 package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Package: gcc-8
Architecture: amd64
Version: 8.5.0-0ubuntu4
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: 29375
Provides: c-compiler
Depends: cpp-8 (= 8.5.0-0ubuntu4), gcc-8-base (= 8.5.0-0ubuntu4), libcc1-0 (>= 8.5.0-0ubuntu4), binutils (>= 2.37), libgcc-8-dev (= 8.5.0-0ubuntu4), libc6 (>= 2.34), 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.5.0-0ubuntu4)
Filename: pool/universe/g/gcc-8/gcc-8_8.5.0-0ubuntu4_amd64.deb
Size: 10601384
MD5sum: 6a9bb709894cd947ea6469e4c4150034
SHA1: 34112d1f7300500831bd3cf0c063a93cd5789ec9
SHA256: 6a5a3f9fe97fd2ef07ddb04b9e1133f55d1299466bd3a50c18cced186b30d731
SHA512: 12cecc1c0c9cd7d4441a1c1f35bb2dfe4bef542751a6c91190d489755d3ea900f8fc1fed1223d595647597522dc09c345be6f4bf6537694c175a129e81514eb5
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