How To Install glib2-static on Rocky Linux 8

In this tutorial we learn how to install glib2-static on Rocky Linux 8. glib2-static is glib static

Introduction

In this tutorial we learn how to install glib2-static on Rocky Linux 8.

What is glib2-static

The glib2-static subpackage contains static libraries for glib2.

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

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

sudo dnf -y install glib2-static

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

sudo yum -y install glib2-static

How To Uninstall glib2-static on Rocky Linux 8

To uninstall only the glib2-static package we can use the following command:

sudo dnf remove glib2-static

glib2-static Package Contents on Rocky Linux 8

/usr/lib/libgio-2.0.a
/usr/lib/libglib-2.0.a
/usr/lib/libgmodule-2.0.a
/usr/lib/libgobject-2.0.a
/usr/lib/libgthread-2.0.a
/usr/lib64/libgio-2.0.a
/usr/lib64/libglib-2.0.a
/usr/lib64/libgmodule-2.0.a
/usr/lib64/libgobject-2.0.a
/usr/lib64/libgthread-2.0.a

References

Summary

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