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

Last updated: May 02,2024

1. Install "gcc" package

This guide let you learn how to install gcc on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install gcc

2. Uninstall "gcc" package

Please follow the steps below to uninstall gcc on Debian 12 (Bookworm):

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

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

Package: gcc
Source: gcc-defaults (1.203)
Version: 4:12.2.0-3
Installed-Size: 47
Maintainer: Debian GCC Maintainers
Architecture: amd64
Provides: c-compiler, gcc-x86-64-linux-gnu (= 4:12.2.0-3)
Depends: cpp (= 4:12.2.0-3), gcc-12 (>= 12.2.0-1~)
Recommends: libc6-dev | libc-dev
Suggests: gcc-multilib, make, manpages-dev, autoconf, automake, libtool, flex, bison, gdb, gcc-doc
Conflicts: gcc-doc (<< 1:2.95.3)
Description: GNU C compiler
Description-md5: c7efd71c7c651a9ac8b2adf36b137790
Build-Essential: yes
Tag: devel::compiler, devel::lang:c, devel::library, implemented-in::c,
interface::commandline, role::devel-lib, role::metapackage,
role::program, suite::gnu, works-with::software:source
Section: devel
Priority: optional
Filename: pool/main/g/gcc-defaults/gcc_12.2.0-3_amd64.deb
Size: 5216
MD5sum: f3dcf34728690484124bce954cc2c734
SHA256: bb63b0fb2797e2a3a294dab8a02614930c557ec1f4ea96637c244b8b5f87e630