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

Last updated: February 02,2025

1. Install "gcc-10" package

This is a short guide on how to install gcc-10 on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install gcc-10

2. Uninstall "gcc-10" package

Please follow the guidance below to uninstall gcc-10 on Debian 11 (Bullseye):

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

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

Package: gcc-10
Version: 10.2.1-6
Installed-Size: 51125
Maintainer: Debian GCC Maintainers
Architecture: amd64
Replaces: cpp-10 (<< 7.1.1-8)
Provides: c-compiler
Depends: cpp-10 (= 10.2.1-6), gcc-10-base (= 10.2.1-6), libcc1-0 (>= 10.2.1-6), binutils (>= 2.35.1), libgcc-10-dev (= 10.2.1-6), 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), libzstd1 (>= 1.3.2), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.30-1~)
Suggests: gcc-10-multilib, gcc-10-doc (>= 10), gcc-10-locales (>= 10)
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698
Homepage: http://gcc.gnu.org/
Section: devel
Priority: optional
Filename: pool/main/g/gcc-10/gcc-10_10.2.1-6_amd64.deb
Size: 16990272
MD5sum: 793e6e0ea6abe7c8276b4e8d407f13cd
SHA256: 07af57b8d276f330830cf67ef144e461817e0ad99ac12c1e9e7e6b6882a4b42a