How To Install swig-gdb on Rocky Linux 8

In this tutorial we learn how to install swig-gdb on Rocky Linux 8. swig-gdb is Commands for easier debugging of SWIG

Introduction

In this tutorial we learn how to install swig-gdb on Rocky Linux 8.

What is swig-gdb

This package contains file with commands for easier debugging of SWIG in gdb.

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

Install swig-gdb on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install swig-gdb

Install swig-gdb on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install swig-gdb

How To Uninstall swig-gdb on Rocky Linux 8

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

sudo dnf remove swig-gdb

swig-gdb Package Contents on Rocky Linux 8

/usr/share/swig/gdb
/usr/share/swig/gdb/swig.gdb

References

Summary

In this tutorial we learn how to install swig-gdb on Rocky Linux 8 using yum and dnf.