How To Install gdb-gdbserver.x86_64 on Amazon Linux 2

In this tutorial we learn how to install gdb-gdbserver.x86_64 in Amazon Linux 2. gdb-gdbserver.x86_64 is A standalone server for GDB (the GNU source-level debugger)

Introduction

In this tutorial we learn how to install gdb-gdbserver.x86_64 on Amazon Linux 2.

What is gdb-gdbserver.x86_64

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 a program that allows you to run GDB on a different machine than the one which is running the program being debugged.

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

Install gdb-gdbserver.x86_64 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-gdbserver.x86_64 using yum by running the following command:

sudo yum -y install gdb-gdbserver.x86_64

How To Uninstall gdb-gdbserver.x86_64 on Amazon Linux 2

To uninstall only the gdb-gdbserver.x86_64 package we can use the following command:

sudo yum remove gdb-gdbserver.x86_64

gdb-gdbserver.x86_64 Package Contents on Amazon Linux 2

/usr/bin/gdbserver
/usr/lib64/libinproctrace.so
/usr/share/man/man1/gdbserver.1.gz

References

Summary

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