How to Install and Uninstall gcc-11 Package on Debian 12 (Bookworm)

Last updated: May 13,2024

1. Install "gcc-11" package

This guide covers the steps necessary to install gcc-11 on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install gcc-11

2. Uninstall "gcc-11" package

Here is a brief guide to show you how to uninstall gcc-11 on Debian 12 (Bookworm):

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

3. Information about the gcc-11 package on Debian 12 (Bookworm)

Package: gcc-11
Version: 11.3.0-12
Installed-Size: 51865
Maintainer: Debian GCC Maintainers
Architecture: amd64
Replaces: cpp-11 (<< 7.1.1-8)
Provides: c-compiler
Depends: cpp-11 (= 11.3.0-12), gcc-11-base (= 11.3.0-12), libcc1-0 (>= 11.3.0-12), binutils (>= 2.40), libgcc-11-dev (= 11.3.0-12), libc6 (>= 2.34), libgcc-s1 (>= 3.0), libgmp10 (>= 2:6.2.1+dfsg1), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), libzstd1 (>= 1.5.2), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.23-1~)
Suggests: gcc-11-multilib, gcc-11-doc (>= 11), gcc-11-locales (>= 11)
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698
Homepage: http://gcc.gnu.org/
Section: devel
Priority: optional
Filename: pool/main/g/gcc-11/gcc-11_11.3.0-12_amd64.deb
Size: 18187468
MD5sum: 4cc903f0ad46a9fb2a21e44f82c49470
SHA256: ffd171e4df5bbc0ace8ecc6efcb6192a8f64fa5bb22ef2f193be66a43431c356