How To Install gcc-gdb-plugin on CentOS 8

gcc-gdb-plugin is GCC plugin for GDB GCC plugin for GDB

Introduction

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

What is gcc-gdb-plugin

This package contains GCC plugin for GDB C expression evaluation. gcc-gdb-plugin 8.4.1 1.el8 x86_64 117 k gcc-8.4.1-1.el8.src.rpm appstream GCC plugin for GDB http GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD This package contains GCC plugin for GDB C expression evaluation.

We can use yum or dnf to install gcc-gdb-plugin on CentOS 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 CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 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 CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/0c
/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 CentOS 8 using yum and dnf.