How To Install ddd on CentOS 8

ddd is GUI for several command-line debuggers

Introduction

In this tutorial we learn how to install ddd on CentOS 8.

What is ddd

The Data Display Debugger (DDD) is a popular GUI for command-line debuggers like GDB, DBX, JDB, WDB, XDB, the Perl debugger, and the Python debugger. DDD allows you to view source texts and provides an interactive graphical data display, in which data structures are displayed as graphs. You can use your mouse to dereference pointers or view structure contents, which are updated every time the program stops. DDD can debug programs written in Ada, C, C++, Chill, Fortran, Java, Modula, Pascal, Perl, and Python. DDD provides machine-level debugging; hypertext source navigation and lookup; breakpoint, watchpoint, backtrace, and history editors; array plots; undo and redo; preferences and settings editors; program execution in the terminal emulation window, debugging on a remote host, an on-line manual, extensive help on the Motif user interface, and a command-line interface with full editing, history and completion capabilities.

We can use yum or dnf to install ddd on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install ddd.

Install ddd on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install ddd using dnf by running the following command:

sudo dnf -y install ddd

Install ddd on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install ddd using yum by running the following command:

sudo yum -y install ddd

How To Uninstall ddd on CentOS 8

To uninstall only the ddd package we can use the following command:

sudo dnf remove ddd

ddd Package Contents on CentOS 8

/usr/bin/ddd
/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/a71a755d80da377812174790bba1e0815f6586
/usr/share/applications/ddd.desktop
/usr/share/ddd-3.3.12
/usr/share/ddd-3.3.12/COPYING
/usr/share/ddd-3.3.12/NEWS
/usr/share/ddd-3.3.12/ddd
/usr/share/ddd-3.3.12/ddd/Ddd
/usr/share/ddd-3.3.12/themes
/usr/share/ddd-3.3.12/themes/green.vsl
/usr/share/ddd-3.3.12/themes/red.vsl
/usr/share/ddd-3.3.12/themes/rednil.vsl
/usr/share/ddd-3.3.12/themes/smalltitles.vsl
/usr/share/ddd-3.3.12/themes/smallvalues.vsl
/usr/share/ddd-3.3.12/themes/suppress.vsl
/usr/share/ddd-3.3.12/themes/tinyvalues.vsl
/usr/share/ddd-3.3.12/themes/x86.vsl
/usr/share/ddd-3.3.12/vsllib
/usr/share/ddd-3.3.12/vsllib/arcs.vsl
/usr/share/ddd-3.3.12/vsllib/builtin.vsl
/usr/share/ddd-3.3.12/vsllib/colors.vsl
/usr/share/ddd-3.3.12/vsllib/ctree.vsl
/usr/share/ddd-3.3.12/vsllib/ddd.vsl
/usr/share/ddd-3.3.12/vsllib/flow.vsl
/usr/share/ddd-3.3.12/vsllib/flowplus.vsl
/usr/share/ddd-3.3.12/vsllib/fonts.vsl
/usr/share/ddd-3.3.12/vsllib/linebreak.vsl
/usr/share/ddd-3.3.12/vsllib/list.vsl
/usr/share/ddd-3.3.12/vsllib/slopes.vsl
/usr/share/ddd-3.3.12/vsllib/std.vsl
/usr/share/ddd-3.3.12/vsllib/struct.vsl
/usr/share/ddd-3.3.12/vsllib/symbols.vsl
/usr/share/ddd-3.3.12/vsllib/tab.vsl
/usr/share/ddd-3.3.12/vsllib/tree.vsl
/usr/share/ddd-3.3.12/vsllib/verbose.vsl
/usr/share/ddd-3.3.12/vsllib/vsl.vsl
/usr/share/ddd-3.3.12/vsllib/vsldef.vsl
/usr/share/ddd-3.3.12/vsllib/vsllib.vsl
/usr/share/doc/ddd
/usr/share/doc/ddd/AUTHORS
/usr/share/doc/ddd/COPYING
/usr/share/doc/ddd/COPYING.DOC
/usr/share/doc/ddd/CREDITS
/usr/share/doc/ddd/INSTALL
/usr/share/doc/ddd/NEWS
/usr/share/doc/ddd/PROBLEMS
/usr/share/doc/ddd/README
/usr/share/doc/ddd/TIPS
/usr/share/doc/ddd/ddd-paper.ps
/usr/share/icons/hicolor/48x48/apps/ddd.png
/usr/share/info/ddd-themes.info.gz
/usr/share/info/ddd.info-1.gz
/usr/share/info/ddd.info-2.gz
/usr/share/info/ddd.info.gz
/usr/share/man/man1/ddd.1.gz

References

Summary

In this tutorial we learn how to install ddd on CentOS 8 using yum and dnf.