How To Install gcc-gdb-plugin on AlmaLinux 8

In this tutorial we learn how to install gcc-gdb-plugin in AlmaLinux 8. gcc-gdb-plugin is GCC plugin for GDB

Introduction

In this tutorial we learn how to install gcc-gdb-plugin on AlmaLinux 8.

What is gcc-gdb-plugin

This package contains GCC plugin for GDB C expression evaluation.

We can use yum or dnf to install gcc-gdb-plugin on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install gcc-gdb-plugin.

Install gcc-gdb-plugin on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install gcc-gdb-plugin using dnf by running the following command:

sudo dnf -y install gcc-gdb-plugin

Install gcc-gdb-plugin on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install gcc-gdb-plugin using yum by running the following command:

sudo yum -y install gcc-gdb-plugin

How To Uninstall gcc-gdb-plugin on AlmaLinux 8

To uninstall only the gcc-gdb-plugin package we can use the following command:

sudo dnf remove gcc-gdb-plugin

References

Summary

In this tutorial we learn how to install gcc-gdb-plugin on AlmaLinux 8 using yum and dnf.