How to Install and Uninstall gdb Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: December 28,2024

1. Install "gdb" package

This is a short guide on how to install gdb on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install gdb

2. Uninstall "gdb" package

Please follow the steps below to uninstall gdb on Ubuntu 20.10 (Groovy Gorilla):

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

3. Information about the gdb package on Ubuntu 20.10 (Groovy Gorilla)

Package: gdb
Architecture: amd64
Version: 9.2-0ubuntu2
Multi-Arch: allowed
Priority: optional
Section: devel
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Héctor Orón Martínez
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 9716
Provides: gdb-minimal (= 9.2-0ubuntu2)
Depends: libbabeltrace1 (>= 1.5.4), libc6 (>= 2.29), libexpat1 (>= 2.0.1), libgcc-s1 (>= 3.0), liblzma5 (>= 5.1.1alpha+20110809), libmpfr6 (>= 3.1.3), libncursesw6 (>= 6), libpython3.8 (>= 3.8.2), libreadline8 (>= 8), libstdc++6 (>= 7), libtinfo6 (>= 6), zlib1g (>= 1:1.2.0)
Recommends: libc-dbg, libcc1-0, gdbserver
Suggests: gdb-doc
Conflicts: gdb
Replaces: gdb, gdb-doc (<< 7.8-1~)
Filename: pool/main/g/gdb/gdb_9.2-0ubuntu2_amd64.deb
Size: 3286236
MD5sum: 98a65490b09e57ca4274efa70d18869c
SHA1: e198d30f417418437f7c22e8ea475cd59483b748
SHA256: c1bee88390351fb6777d9757496c5078cece172f527117570f2ab86bd8047fc2
SHA512: d81ce5f0dffac15ad72a9106152cb860a36e4901249faea2caa0084578f82db0a84a983ad4c321acb309b1a93e29591db60a488e43ccdee71e3f12d964c42e28
Homepage: http://www.gnu.org/s/gdb/
Description-en: GNU Debugger
GDB is a source-level debugger, capable of breaking programs at
any specific line, displaying variable values, and determining
where errors occurred. Currently, gdb supports C, C++, D,
Objective-C, Fortran, Java, OpenCL C, Pascal, assembly, Modula-2,
Go, and Ada. A must-have for any serious programmer.
Description-md5: 4f2b8eb95df2ba7a5b11e0301c48b8e4
Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop