How to Install and Uninstall gcc-9 Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 19,2024

1. Install "gcc-9" package

Please follow the guidelines below to install gcc-9 on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install gcc-9

2. Uninstall "gcc-9" package

Please follow the guidelines below to uninstall gcc-9 on Ubuntu 21.10 (Impish Indri):

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

3. Information about the gcc-9 package on Ubuntu 21.10 (Impish Indri)

Package: gcc-9
Architecture: amd64
Version: 9.4.0-3ubuntu1
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: 29859
Provides: c-compiler
Depends: cpp-9 (= 9.4.0-3ubuntu1), gcc-9-base (= 9.4.0-3ubuntu1), libcc1-0 (>= 9.4.0-3ubuntu1), binutils (>= 2.37), libgcc-9-dev (= 9.4.0-3ubuntu1), 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-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.4.0-3ubuntu1_amd64.deb
Size: 8966234
MD5sum: e9985ead7fcae3ae96bffb280a6c1928
SHA1: ea7d8373cad907be3d3e7d1330d5597e39dc5f81
SHA256: b9ef1e651589d58202d3935fa9a4dc010a715dd62325791d471cee079e5bced0
SHA512: 54106d9cd9ff9f18d4b496c1eeac437779a19e84f31596a055c82b7ea64e6ca055154a2b03ff4420716d8f6b23001ff737f9af433ff6ddefb952c6a3cf615a98
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