How to Install and Uninstall gcc Package on Debian 12 (Bookworm)
Last updated: November 06,2024
Notice
You can also install and uninstall the gcc on the following distributions in the same way, as they are all based on the Debian system
- MX Linux 23
- SparkyLinux
1. Install "gcc" package
This guide let you learn how to install gcc on Debian 12 (Bookworm)
$
sudo apt update
Copied
$
sudo apt install
gcc
Copied
2. Uninstall "gcc" package
Please follow the steps below to uninstall gcc on Debian 12 (Bookworm):
$
sudo apt remove
gcc
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
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
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