How To Install dbus-glib on Rocky Linux 8

In this tutorial we learn how to install dbus-glib on Rocky Linux 8. dbus-glib is GLib bindings for D-Bus

Introduction

In this tutorial we learn how to install dbus-glib on Rocky Linux 8.

What is dbus-glib

D-Bus add-on library to integrate the standard D-Bus library with the GLib thread abstraction and main loop.

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

Install dbus-glib 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 dbus-glib using dnf by running the following command:

sudo dnf -y install dbus-glib

Install dbus-glib 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 dbus-glib using yum by running the following command:

sudo yum -y install dbus-glib

How To Uninstall dbus-glib on Rocky Linux 8

To uninstall only the dbus-glib package we can use the following command:

sudo dnf remove dbus-glib

dbus-glib Package Contents on Rocky Linux 8

/usr/bin/dbus-binding-tool
/usr/lib/.build-id
/usr/lib/.build-id/67
/usr/lib/.build-id/67/b3846789df024392edd59669d8d718bd13ea7d
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/faef1d4e1db3ac36142b6e9fe18e491ed29ef7
/usr/lib/libdbus-glib-1.so.2
/usr/lib/libdbus-glib-1.so.2.3.4
/usr/share/doc/dbus-glib
/usr/share/doc/dbus-glib/NEWS
/usr/share/licenses/dbus-glib
/usr/share/licenses/dbus-glib/COPYING
/usr/share/man/man1/dbus-binding-tool.1.gz
/usr/bin/dbus-binding-tool
/usr/lib/.build-id
/usr/lib/.build-id/84
/usr/lib/.build-id/84/aeaf49033fa71e6435018b8b5c9b41ac3f32f6
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/88ec2ccd08ad3ae29ea7fb644d1b922f4e6cb7
/usr/lib64/libdbus-glib-1.so.2
/usr/lib64/libdbus-glib-1.so.2.3.4
/usr/share/doc/dbus-glib
/usr/share/doc/dbus-glib/NEWS
/usr/share/licenses/dbus-glib
/usr/share/licenses/dbus-glib/COPYING
/usr/share/man/man1/dbus-binding-tool.1.gz

References

Summary

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