How to Install and Uninstall gcc-9 Package on Debian 11 (Bullseye)

Last updated: May 18,2024

1. Install "gcc-9" package

Please follow the step by step instructions below to install gcc-9 on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install gcc-9

2. Uninstall "gcc-9" package

Please follow the steps below to uninstall gcc-9 on Debian 11 (Bullseye):

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

3. Information about the gcc-9 package on Debian 11 (Bullseye)

Package: gcc-9
Version: 9.3.0-22
Installed-Size: 29267
Maintainer: Debian GCC Maintainers
Architecture: amd64
Replaces: cpp-9 (<< 7.1.1-8)
Provides: c-compiler
Depends: cpp-9 (= 9.3.0-22), gcc-9-base (= 9.3.0-22), libcc1-0 (>= 9.3.0-22), binutils (>= 2.35.1), libgcc-9-dev (= 9.3.0-22), libc6 (>= 2.14), 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-5)
Suggests: gcc-9-multilib, gcc-9-doc (>= 8), gcc-9-locales (>= 8)
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698
Homepage: http://gcc.gnu.org/
Section: devel
Priority: optional
Filename: pool/main/g/gcc-9/gcc-9_9.3.0-22_amd64.deb
Size: 10043504
MD5sum: 649b1de044a454e076fc4f77299ed7c9
SHA256: 499bfe9a9e1f4f266c27547adc445bf37717b731ed7e57921c138a0db15577ad