How To Install gdb-doc.noarch on Amazon Linux 2

In this tutorial we learn how to install gdb-doc.noarch in Amazon Linux 2. gdb-doc.noarch is Documentation for GDB (the GNU source-level debugger)

Introduction

In this tutorial we learn how to install gdb-doc.noarch on Amazon Linux 2.

What is gdb-doc.noarch

GDB, the GNU debugger, allows you to debug programs written in C, C++, Java, and other languages, by executing them in a controlled fashion and printing their data. This package provides INFO, HTML and PDF user manual for GDB.

We can use yum to install gdb-doc.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install gdb-doc.noarch.

Install gdb-doc.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install gdb-doc.noarch using yum by running the following command:

sudo yum -y install gdb-doc.noarch

How To Uninstall gdb-doc.noarch on Amazon Linux 2

To uninstall only the gdb-doc.noarch package we can use the following command:

sudo yum remove gdb-doc.noarch

gdb-doc.noarch Package Contents on Amazon Linux 2

/usr/share/doc/gdb-doc-8.0.1
/usr/share/doc/gdb-doc-8.0.1/annotate.html
/usr/share/doc/gdb-doc-8.0.1/annotate.pdf
/usr/share/doc/gdb-doc-8.0.1/gdb.html
/usr/share/doc/gdb-doc-8.0.1/gdb.pdf
/usr/share/info/annotate.info.gz
/usr/share/info/gdb.info.gz

References

Summary

In this tutorial we learn how to install gdb-doc.noarch on Amazon Linux 2 using yum.