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

Last updated: December 27,2024

1. Install "gdb" package

In this section, we are going to explain the necessary steps to install gdb on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install gdb

2. Uninstall "gdb" package

This tutorial shows how to uninstall gdb on Debian 12 (Bookworm):

$ sudo apt remove gdb $ sudo apt autoclean && sudo apt autoremove

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

Package: gdb
Version: 13.1-3
Installed-Size: 11629
Maintainer: Héctor Orón Martínez
Architecture: amd64
Replaces: gdb
Depends: libbabeltrace1 (>= 1.5.4), libc6 (>= 2.34), libdebuginfod1 (>= 0.180), libexpat1 (>= 2.0.1), libgcc-s1 (>= 4.2), libgmp10 (>= 2:6.2.1+dfsg1), libipt2 (>= 2.0), liblzma5 (>= 5.1.1alpha+20110809), libmpfr6 (>= 3.1.3), libncursesw6 (>= 6), libpython3.11 (>= 3.11.0), libreadline8 (>= 8.2~beta), libsource-highlight4v5 (>= 3.1.9), libstdc++6 (>= 12), libtinfo6 (>= 6), libxxhash0 (>= 0.6.5), libzstd1 (>= 1.5.2), zlib1g (>= 1:1.2.0)
Recommends: libc-dbg
Suggests: gdb-doc, gdbserver
Conflicts: gdb
Description: GNU Debugger
Description-md5: 4f2b8eb95df2ba7a5b11e0301c48b8e4
Homepage: https://www.gnu.org/s/gdb/
Tag: devel::debugger, devel::lang:c, devel::lang:c++, devel::lang:fortran,
devel::lang:java, devel::library, implemented-in::c,
implemented-in::java, interface::commandline, interface::text-mode,
role::devel-lib, role::program, scope::utility, suite::gnu,
uitoolkit::ncurses, works-with::software:running
Section: devel
Priority: optional
Filename: pool/main/g/gdb/gdb_13.1-3_amd64.deb
Size: 3962052
MD5sum: e40b69d83ed40085b6ae5b4bffebf891
SHA256: 65e29803ae582f0094c0412eca8032f2a5a1188664c59e14c35b9528fc81a9a5