How To Install gcc-gdb-plugin on Rocky Linux 8

In this tutorial we learn how to install gcc-gdb-plugin on Rocky Linux 8. gcc-gdb-plugin is GCC plugin for GDB

Introduction

In this tutorial we learn how to install gcc-gdb-plugin on Rocky Linux 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 Rocky Linux 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 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 gcc-gdb-plugin using dnf by running the following command:

sudo dnf -y install gcc-gdb-plugin

Install gcc-gdb-plugin 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 gcc-gdb-plugin using yum by running the following command:

sudo yum -y install gcc-gdb-plugin

How To Uninstall gcc-gdb-plugin on Rocky Linux 8

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

sudo dnf remove gcc-gdb-plugin

gcc-gdb-plugin Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/0c/b31b30dbfdffd0185686f0ac33ce3ca932ab8c
/usr/lib/.build-id/39
/usr/lib/.build-id/39/19049b3e576ff7fa51c8cf004e766243ad4f99
/usr/lib/.build-id/b9
/usr/lib/.build-id/b9/58a7adcd51b12183a41e62bc888ed16b5a0d53
/usr/lib/gcc
/usr/lib/gcc/i686-redhat-linux
/usr/lib/gcc/i686-redhat-linux/8
/usr/lib/gcc/i686-redhat-linux/8/plugin
/usr/lib/gcc/i686-redhat-linux/8/plugin/libcc1plugin.so
/usr/lib/gcc/i686-redhat-linux/8/plugin/libcc1plugin.so.0
/usr/lib/gcc/i686-redhat-linux/8/plugin/libcc1plugin.so.0.0.0
/usr/lib/gcc/i686-redhat-linux/8/plugin/libcp1plugin.so
/usr/lib/gcc/i686-redhat-linux/8/plugin/libcp1plugin.so.0
/usr/lib/gcc/i686-redhat-linux/8/plugin/libcp1plugin.so.0.0.0
/usr/lib/libcc1.so
/usr/lib/libcc1.so.0
/usr/lib/libcc1.so.0.0.0
/usr/share/doc/gcc-gdb-plugin
/usr/share/doc/gcc-gdb-plugin/ChangeLog.bz2
/usr/lib/.build-id
/usr/lib/.build-id/48
/usr/lib/.build-id/48/e2e5c6dc62db2f7d386bf0b0b00a1b0e42cb3a
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/84866b3b93ebc65025a91fe27e7203771f0cb7
/usr/lib/.build-id/8f
/usr/lib/.build-id/8f/ec843ee8bf2627846c1d3946cd64048a64cd12
/usr/lib/gcc
/usr/lib/gcc/x86_64-redhat-linux
/usr/lib/gcc/x86_64-redhat-linux/8
/usr/lib/gcc/x86_64-redhat-linux/8/plugin
/usr/lib/gcc/x86_64-redhat-linux/8/plugin/libcc1plugin.so
/usr/lib/gcc/x86_64-redhat-linux/8/plugin/libcc1plugin.so.0
/usr/lib/gcc/x86_64-redhat-linux/8/plugin/libcc1plugin.so.0.0.0
/usr/lib/gcc/x86_64-redhat-linux/8/plugin/libcp1plugin.so
/usr/lib/gcc/x86_64-redhat-linux/8/plugin/libcp1plugin.so.0
/usr/lib/gcc/x86_64-redhat-linux/8/plugin/libcp1plugin.so.0.0.0
/usr/lib64/libcc1.so
/usr/lib64/libcc1.so.0
/usr/lib64/libcc1.so.0.0.0
/usr/share/doc/gcc-gdb-plugin
/usr/share/doc/gcc-gdb-plugin/ChangeLog.bz2

References

Summary

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