How to Install and Uninstall gcc-9 Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: December 23,2024

1. Install "gcc-9" package

Please follow the guidance below to install gcc-9 on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install gcc-9

2. Uninstall "gcc-9" package

Please follow the instructions below to uninstall gcc-9 on Ubuntu 20.10 (Groovy Gorilla):

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

3. Information about the gcc-9 package on Ubuntu 20.10 (Groovy Gorilla)

Package: gcc-9
Architecture: amd64
Version: 9.3.0-18ubuntu1
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: 29796
Provides: c-compiler
Depends: cpp-9 (= 9.3.0-18ubuntu1), gcc-9-base (= 9.3.0-18ubuntu1), libcc1-0 (>= 9.3.0-18ubuntu1), binutils (>= 2.35), libgcc-9-dev (= 9.3.0-18ubuntu1), libc6 (>= 2.15), libgcc-s1 (>= 3.0), libgmp10 (>= 2:5.0.1~), libisl22 (>= 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-9-multilib, gcc-9-doc (>= 8), gcc-9-locales (>= 8)
Replaces: cpp-9 (<< 7.1.1-8)
Filename: pool/universe/g/gcc-9/gcc-9_9.3.0-18ubuntu1_amd64.deb
Size: 8243232
MD5sum: 1ec647db56123ad808165086e2c5080d
SHA1: ecde9ed931b99f1251b04105a2a1e56de9daa696
SHA256: ed5a2e2cc695084e20b3fdd567cbd6e69a020c13e89a92863d70536174cdcd07
SHA512: 32506896e3738f6f7ce3fc0eb2a367999a6786e73320d657d517b35d94613b6078078ffb1e595ad40b91b880698d380ecedfa1d1679549cd54e4ebd55791da0b
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