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

Last updated: December 23,2024

1. Install "gcc-9" package

Please follow the guidance below to install gcc-9 on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install gcc-9

2. Uninstall "gcc-9" package

This guide covers the steps necessary to uninstall gcc-9 on Ubuntu 21.04 (Hirsute Hippo):

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

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

Package: gcc-9
Architecture: amd64
Version: 9.3.0-23ubuntu2
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: 29823
Provides: c-compiler
Depends: cpp-9 (= 9.3.0-23ubuntu2), gcc-9-base (= 9.3.0-23ubuntu2), libcc1-0 (>= 9.3.0-23ubuntu2), binutils (>= 2.36.1), libgcc-9-dev (= 9.3.0-23ubuntu2), 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-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-23ubuntu2_amd64.deb
Size: 8260308
MD5sum: d79852b495aca07191e2729845ec9e86
SHA1: 1bd35934b2246e5f285136110aef3d9393fe0824
SHA256: bc57939f881192699862bd89e95137f3b21fea053fcc60a48603b0d15dbfa357
SHA512: 6fd4d23a31d56aaeb620e8f04fba21223a57010d064a65eee6bfadd987a62d71e477e18a5fce785d691dd4b8cfd6df4b5cf4924fbf913e5c627038715e041e75
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