How To Install python3-gobject on Rocky Linux 8

In this tutorial we learn how to install python3-gobject on Rocky Linux 8. python3-gobject is Python 3 bindings for GObject Introspection

Introduction

In this tutorial we learn how to install python3-gobject on Rocky Linux 8.

What is python3-gobject

The python3-gobject package provides a convenient wrapper for the GObject library and and other libraries that are compatible with GObject Introspection, for use in Python 3 programs.

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

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

sudo dnf -y install python3-gobject

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

sudo yum -y install python3-gobject

How To Uninstall python3-gobject on Rocky Linux 8

To uninstall only the python3-gobject package we can use the following command:

sudo dnf remove python3-gobject

python3-gobject Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/bda5687a2c1bf7fc2c8b806d329faa3c307f46
/usr/lib64/python3.6/site-packages/gi/_gi_cairo.cpython-36m-x86_64-linux-gnu.so
/usr/lib/.build-id
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/500fdad510ca364e6f068ae5f6c5793eb5318e
/usr/lib/python3.6/site-packages/gi/_gi_cairo.cpython-36m-i386-linux-gnu.so

References

Summary

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