How to Install and Uninstall gdb Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 26,2024

1. Install "gdb" package

Please follow the guidance below to install gdb on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install gdb

2. Uninstall "gdb" package

Here is a brief guide to show you how to uninstall gdb on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the gdb package on Ubuntu 20.04 LTS (Focal Fossa)

Package: gdb
Architecture: amd64
Version: 9.2-0ubuntu1~20.04.1
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: 9532
Provides: gdb-minimal (= 9.2-0ubuntu1~20.04.1)
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-0ubuntu1~20.04.1_amd64.deb
Size: 3221592
MD5sum: 632e0a58edc7798d281d7590a8686e5b
SHA1: 365994851d3944cbf704cd59313925aeff3dda4b
SHA256: 396bfbb093a8e4771061910e7fd682330cc3ee4ecbaf8d2015713e9bff1f4bc0
SHA512: ad97d073cdc9b6de17548c33a211858e14acec33362862884a1495fd9b1690d09af565e5ca1614a20ab2539ba74360ddef68cf17c7d828b8e6eb58b0f3022ee3
Homepage: http://www.gnu.org/s/gdb/
Description: GNU Debugger
Description-md5: 4f2b8eb95df2ba7a5b11e0301c48b8e4
Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-desktop, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

Package: gdb
Architecture: amd64
Version: 9.1-0ubuntu1
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: 9530
Provides: gdb-minimal (= 9.1-0ubuntu1)
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.0~a1), 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.1-0ubuntu1_amd64.deb
Size: 3218448
MD5sum: 8fcee20e0ebf0511deb2a5787cd46a0a
SHA1: a9a57582e586fab46ac414e284a3c479380cd9b9
SHA256: 3ebb6be48571e6555ef26ca9aeeff5c5bdd114d8ee25afac17b5473727440b89
Homepage: http://www.gnu.org/s/gdb/
Description: GNU Debugger
Description-md5: 4f2b8eb95df2ba7a5b11e0301c48b8e4
Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-desktop, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop