How To Install glib2 on Rocky Linux 8

In this tutorial we learn how to install glib2 on Rocky Linux 8. glib2 is A library of handy utility functions

Introduction

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

What is glib2

GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system.

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

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

sudo dnf -y install glib2

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

sudo yum -y install glib2

How To Uninstall glib2 on Rocky Linux 8

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

sudo dnf remove glib2

glib2 Package Contents on Rocky Linux 8

/usr/bin/gapplication
/usr/bin/gdbus
/usr/bin/gio
/usr/bin/gio-querymodules-32
/usr/bin/glib-compile-schemas
/usr/bin/gsettings
/usr/lib/.build-id
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/17cb65415c13fd30b315c2114c5633049f2925
/usr/lib/.build-id/25
/usr/lib/.build-id/25/e19535a329bb76ae43a553cc75521217d315f0
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/ecf758c5e686a786ef4ae6c59c79bbe5325011
/usr/lib/.build-id/40
/usr/lib/.build-id/40/4decc594912d8a2054b4dfd8b24597ed363117
/usr/lib/.build-id/4e
/usr/lib/.build-id/4e/64a90a0ccc975760c12c714abec69f2a3604f7
/usr/lib/.build-id/69
/usr/lib/.build-id/69/d8b4192eef74fbba50fbc9c5004b62744d0499
/usr/lib/.build-id/6a
/usr/lib/.build-id/6a/01c2ec2a530151ea1a3d61688211382a9f04ad
/usr/lib/.build-id/77
/usr/lib/.build-id/77/0de97ba56464795b951c208d2d76018c670cf5
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/cdd87952ee7ad1f0910f600df6200f60b17dd4
/usr/lib/.build-id/c7
/usr/lib/.build-id/c7/d519a3f0b4a665671636499256df8c1904c8f8
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/47b7e9331183e6fb9d9f5899ce04401c85648e
/usr/lib/gio
/usr/lib/gio/modules
/usr/lib/gio/modules/giomodule.cache
/usr/lib/libgio-2.0.so.0
/usr/lib/libgio-2.0.so.0.5600.4
/usr/lib/libglib-2.0.so.0
/usr/lib/libglib-2.0.so.0.5600.4
/usr/lib/libgmodule-2.0.so.0
/usr/lib/libgmodule-2.0.so.0.5600.4
/usr/lib/libgobject-2.0.so.0
/usr/lib/libgobject-2.0.so.0.5600.4
/usr/lib/libgthread-2.0.so.0
/usr/lib/libgthread-2.0.so.0.5600.4
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/gapplication
/usr/share/bash-completion/completions/gdbus
/usr/share/bash-completion/completions/gsettings
/usr/share/doc/glib2
/usr/share/doc/glib2/AUTHORS
/usr/share/doc/glib2/NEWS
/usr/share/doc/glib2/README
/usr/share/glib-2.0
/usr/share/glib-2.0/schemas
/usr/share/licenses/glib2
/usr/share/licenses/glib2/COPYING
/usr/share/locale/af/LC_MESSAGES/glib20.mo
/usr/share/locale/am/LC_MESSAGES/glib20.mo
/usr/share/locale/an/LC_MESSAGES/glib20.mo
/usr/share/locale/ar/LC_MESSAGES/glib20.mo
/usr/share/locale/as/LC_MESSAGES/glib20.mo
/usr/share/locale/ast/LC_MESSAGES/glib20.mo
/usr/share/locale/az/LC_MESSAGES/glib20.mo
/usr/share/locale/be/LC_MESSAGES/glib20.mo
/usr/share/locale/be@latin/LC_MESSAGES/glib20.mo
/usr/share/locale/bg/LC_MESSAGES/glib20.mo
/usr/share/locale/bn/LC_MESSAGES/glib20.mo
/usr/share/locale/bn_IN/LC_MESSAGES/glib20.mo
/usr/share/locale/bs/LC_MESSAGES/glib20.mo
/usr/share/locale/ca/LC_MESSAGES/glib20.mo
/usr/share/locale/ca@valencia/LC_MESSAGES/glib20.mo
/usr/share/locale/cs/LC_MESSAGES/glib20.mo
/usr/share/locale/cy/LC_MESSAGES/glib20.mo
/usr/share/locale/da/LC_MESSAGES/glib20.mo
/usr/share/locale/de/LC_MESSAGES/glib20.mo
/usr/share/locale/dz/LC_MESSAGES/glib20.mo
/usr/share/locale/el/LC_MESSAGES/glib20.mo
/usr/share/locale/en@shaw/LC_MESSAGES/glib20.mo
/usr/share/locale/en_CA/LC_MESSAGES/glib20.mo
/usr/share/locale/en_GB/LC_MESSAGES/glib20.mo
/usr/share/locale/eo/LC_MESSAGES/glib20.mo
/usr/share/locale/es/LC_MESSAGES/glib20.mo
/usr/share/locale/et/LC_MESSAGES/glib20.mo
/usr/share/locale/eu/LC_MESSAGES/glib20.mo
/usr/share/locale/fa/LC_MESSAGES/glib20.mo
/usr/share/locale/fi/LC_MESSAGES/glib20.mo
/usr/share/locale/fr/LC_MESSAGES/glib20.mo
/usr/share/locale/fur/LC_MESSAGES/glib20.mo
/usr/share/locale/ga/LC_MESSAGES/glib20.mo
/usr/share/locale/gd/LC_MESSAGES/glib20.mo
/usr/share/locale/gl/LC_MESSAGES/glib20.mo
/usr/share/locale/gu/LC_MESSAGES/glib20.mo
/usr/share/locale/he/LC_MESSAGES/glib20.mo
/usr/share/locale/hi/LC_MESSAGES/glib20.mo
/usr/share/locale/hr/LC_MESSAGES/glib20.mo
/usr/share/locale/hu/LC_MESSAGES/glib20.mo
/usr/share/locale/hy/LC_MESSAGES/glib20.mo
/usr/share/locale/id/LC_MESSAGES/glib20.mo
/usr/share/locale/is/LC_MESSAGES/glib20.mo
/usr/share/locale/it/LC_MESSAGES/glib20.mo
/usr/share/locale/ja/LC_MESSAGES/glib20.mo
/usr/share/locale/ka/LC_MESSAGES/glib20.mo
/usr/share/locale/kk/LC_MESSAGES/glib20.mo
/usr/share/locale/kn/LC_MESSAGES/glib20.mo
/usr/share/locale/ko/LC_MESSAGES/glib20.mo
/usr/share/locale/ku/LC_MESSAGES/glib20.mo
/usr/share/locale/lt/LC_MESSAGES/glib20.mo
/usr/share/locale/lv/LC_MESSAGES/glib20.mo
/usr/share/locale/mai/LC_MESSAGES/glib20.mo
/usr/share/locale/mg/LC_MESSAGES/glib20.mo
/usr/share/locale/mk/LC_MESSAGES/glib20.mo
/usr/share/locale/ml/LC_MESSAGES/glib20.mo
/usr/share/locale/mn/LC_MESSAGES/glib20.mo
/usr/share/locale/mr/LC_MESSAGES/glib20.mo
/usr/share/locale/ms/LC_MESSAGES/glib20.mo
/usr/share/locale/nb/LC_MESSAGES/glib20.mo
/usr/share/locale/nds/LC_MESSAGES/glib20.mo
/usr/share/locale/ne/LC_MESSAGES/glib20.mo
/usr/share/locale/nl/LC_MESSAGES/glib20.mo
/usr/share/locale/nn/LC_MESSAGES/glib20.mo
/usr/share/locale/oc/LC_MESSAGES/glib20.mo
/usr/share/locale/or/LC_MESSAGES/glib20.mo
/usr/share/locale/pa/LC_MESSAGES/glib20.mo
/usr/share/locale/pl/LC_MESSAGES/glib20.mo
/usr/share/locale/ps/LC_MESSAGES/glib20.mo
/usr/share/locale/pt/LC_MESSAGES/glib20.mo
/usr/share/locale/pt_BR/LC_MESSAGES/glib20.mo
/usr/share/locale/ro/LC_MESSAGES/glib20.mo
/usr/share/locale/ru/LC_MESSAGES/glib20.mo
/usr/share/locale/rw/LC_MESSAGES/glib20.mo
/usr/share/locale/si/LC_MESSAGES/glib20.mo
/usr/share/locale/sk/LC_MESSAGES/glib20.mo
/usr/share/locale/sl/LC_MESSAGES/glib20.mo
/usr/share/locale/sq/LC_MESSAGES/glib20.mo
/usr/share/locale/sr/LC_MESSAGES/glib20.mo
/usr/share/locale/sr@ije/LC_MESSAGES/glib20.mo
/usr/share/locale/sr@latin/LC_MESSAGES/glib20.mo
/usr/share/locale/sv/LC_MESSAGES/glib20.mo
/usr/share/locale/ta/LC_MESSAGES/glib20.mo
/usr/share/locale/te/LC_MESSAGES/glib20.mo
/usr/share/locale/tg/LC_MESSAGES/glib20.mo
/usr/share/locale/th/LC_MESSAGES/glib20.mo
/usr/share/locale/tl/LC_MESSAGES/glib20.mo
/usr/share/locale/tr/LC_MESSAGES/glib20.mo
/usr/share/locale/tt/LC_MESSAGES/glib20.mo
/usr/share/locale/ug/LC_MESSAGES/glib20.mo
/usr/share/locale/uk/LC_MESSAGES/glib20.mo
/usr/share/locale/vi/LC_MESSAGES/glib20.mo
/usr/share/locale/wa/LC_MESSAGES/glib20.mo
/usr/share/locale/xh/LC_MESSAGES/glib20.mo
/usr/share/locale/yi/LC_MESSAGES/glib20.mo
/usr/share/locale/zh_CN/LC_MESSAGES/glib20.mo
/usr/share/locale/zh_HK/LC_MESSAGES/glib20.mo
/usr/share/locale/zh_TW/LC_MESSAGES/glib20.mo
/usr/share/man/man1/gapplication.1.gz
/usr/share/man/man1/gdbus.1.gz
/usr/share/man/man1/gio-querymodules.1.gz
/usr/share/man/man1/gio.1.gz
/usr/share/man/man1/glib-compile-schemas.1.gz
/usr/share/man/man1/gsettings.1.gz
/usr/bin/gapplication
/usr/bin/gdbus
/usr/bin/gio
/usr/bin/gio-querymodules-64
/usr/bin/glib-compile-schemas
/usr/bin/gsettings
/usr/lib/.build-id
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/fd3628311934cebe74ed74e9bf18ce0a16ddbf
/usr/lib/.build-id/42
/usr/lib/.build-id/42/8ecf1a9417e8be418cf61aea3a014a1f1cac08
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/3e9c127024c98d4960fd73c410fcdd68e43614
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/efffff6e679b0bc82d2e7065e5e945a90c43ff
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/cb0cfcfa16b856681722b4ecd1cf172ba972ee
/usr/lib/.build-id/72
/usr/lib/.build-id/72/26b142dea1e47f5b484d1c64d14efbb96241fb
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/97fabd19dcfabb2dccefc6aca6b7e26116e734
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/f5193bb68a87c957003921af7bdbd5254ad67b
/usr/lib/.build-id/c5
/usr/lib/.build-id/c5/977411258d370abe27c448d24216da4346af5a
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/606e70d329349cd340a737c6d141660dd07a01
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/e7849d8142a61917771c3d54bdaea94e79b142
/usr/lib64/gio
/usr/lib64/gio/modules
/usr/lib64/gio/modules/giomodule.cache
/usr/lib64/libgio-2.0.so.0
/usr/lib64/libgio-2.0.so.0.5600.4
/usr/lib64/libglib-2.0.so.0
/usr/lib64/libglib-2.0.so.0.5600.4
/usr/lib64/libgmodule-2.0.so.0
/usr/lib64/libgmodule-2.0.so.0.5600.4
/usr/lib64/libgobject-2.0.so.0
/usr/lib64/libgobject-2.0.so.0.5600.4
/usr/lib64/libgthread-2.0.so.0
/usr/lib64/libgthread-2.0.so.0.5600.4
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/gapplication
/usr/share/bash-completion/completions/gdbus
/usr/share/bash-completion/completions/gsettings
/usr/share/doc/glib2
/usr/share/doc/glib2/AUTHORS
/usr/share/doc/glib2/NEWS
/usr/share/doc/glib2/README
/usr/share/glib-2.0
/usr/share/glib-2.0/schemas
/usr/share/licenses/glib2
/usr/share/licenses/glib2/COPYING
/usr/share/locale/af/LC_MESSAGES/glib20.mo
/usr/share/locale/am/LC_MESSAGES/glib20.mo
/usr/share/locale/an/LC_MESSAGES/glib20.mo
/usr/share/locale/ar/LC_MESSAGES/glib20.mo
/usr/share/locale/as/LC_MESSAGES/glib20.mo
/usr/share/locale/ast/LC_MESSAGES/glib20.mo
/usr/share/locale/az/LC_MESSAGES/glib20.mo
/usr/share/locale/be/LC_MESSAGES/glib20.mo
/usr/share/locale/be@latin/LC_MESSAGES/glib20.mo
/usr/share/locale/bg/LC_MESSAGES/glib20.mo
/usr/share/locale/bn/LC_MESSAGES/glib20.mo
/usr/share/locale/bn_IN/LC_MESSAGES/glib20.mo
/usr/share/locale/bs/LC_MESSAGES/glib20.mo
/usr/share/locale/ca/LC_MESSAGES/glib20.mo
/usr/share/locale/ca@valencia/LC_MESSAGES/glib20.mo
/usr/share/locale/cs/LC_MESSAGES/glib20.mo
/usr/share/locale/cy/LC_MESSAGES/glib20.mo
/usr/share/locale/da/LC_MESSAGES/glib20.mo
/usr/share/locale/de/LC_MESSAGES/glib20.mo
/usr/share/locale/dz/LC_MESSAGES/glib20.mo
/usr/share/locale/el/LC_MESSAGES/glib20.mo
/usr/share/locale/en@shaw/LC_MESSAGES/glib20.mo
/usr/share/locale/en_CA/LC_MESSAGES/glib20.mo
/usr/share/locale/en_GB/LC_MESSAGES/glib20.mo
/usr/share/locale/eo/LC_MESSAGES/glib20.mo
/usr/share/locale/es/LC_MESSAGES/glib20.mo
/usr/share/locale/et/LC_MESSAGES/glib20.mo
/usr/share/locale/eu/LC_MESSAGES/glib20.mo
/usr/share/locale/fa/LC_MESSAGES/glib20.mo
/usr/share/locale/fi/LC_MESSAGES/glib20.mo
/usr/share/locale/fr/LC_MESSAGES/glib20.mo
/usr/share/locale/fur/LC_MESSAGES/glib20.mo
/usr/share/locale/ga/LC_MESSAGES/glib20.mo
/usr/share/locale/gd/LC_MESSAGES/glib20.mo
/usr/share/locale/gl/LC_MESSAGES/glib20.mo
/usr/share/locale/gu/LC_MESSAGES/glib20.mo
/usr/share/locale/he/LC_MESSAGES/glib20.mo
/usr/share/locale/hi/LC_MESSAGES/glib20.mo
/usr/share/locale/hr/LC_MESSAGES/glib20.mo
/usr/share/locale/hu/LC_MESSAGES/glib20.mo
/usr/share/locale/hy/LC_MESSAGES/glib20.mo
/usr/share/locale/id/LC_MESSAGES/glib20.mo
/usr/share/locale/is/LC_MESSAGES/glib20.mo
/usr/share/locale/it/LC_MESSAGES/glib20.mo
/usr/share/locale/ja/LC_MESSAGES/glib20.mo
/usr/share/locale/ka/LC_MESSAGES/glib20.mo
/usr/share/locale/kk/LC_MESSAGES/glib20.mo
/usr/share/locale/kn/LC_MESSAGES/glib20.mo
/usr/share/locale/ko/LC_MESSAGES/glib20.mo
/usr/share/locale/ku/LC_MESSAGES/glib20.mo
/usr/share/locale/lt/LC_MESSAGES/glib20.mo
/usr/share/locale/lv/LC_MESSAGES/glib20.mo
/usr/share/locale/mai/LC_MESSAGES/glib20.mo
/usr/share/locale/mg/LC_MESSAGES/glib20.mo
/usr/share/locale/mk/LC_MESSAGES/glib20.mo
/usr/share/locale/ml/LC_MESSAGES/glib20.mo
/usr/share/locale/mn/LC_MESSAGES/glib20.mo
/usr/share/locale/mr/LC_MESSAGES/glib20.mo
/usr/share/locale/ms/LC_MESSAGES/glib20.mo
/usr/share/locale/nb/LC_MESSAGES/glib20.mo
/usr/share/locale/nds/LC_MESSAGES/glib20.mo
/usr/share/locale/ne/LC_MESSAGES/glib20.mo
/usr/share/locale/nl/LC_MESSAGES/glib20.mo
/usr/share/locale/nn/LC_MESSAGES/glib20.mo
/usr/share/locale/oc/LC_MESSAGES/glib20.mo
/usr/share/locale/or/LC_MESSAGES/glib20.mo
/usr/share/locale/pa/LC_MESSAGES/glib20.mo
/usr/share/locale/pl/LC_MESSAGES/glib20.mo
/usr/share/locale/ps/LC_MESSAGES/glib20.mo
/usr/share/locale/pt/LC_MESSAGES/glib20.mo
/usr/share/locale/pt_BR/LC_MESSAGES/glib20.mo
/usr/share/locale/ro/LC_MESSAGES/glib20.mo
/usr/share/locale/ru/LC_MESSAGES/glib20.mo
/usr/share/locale/rw/LC_MESSAGES/glib20.mo
/usr/share/locale/si/LC_MESSAGES/glib20.mo
/usr/share/locale/sk/LC_MESSAGES/glib20.mo
/usr/share/locale/sl/LC_MESSAGES/glib20.mo
/usr/share/locale/sq/LC_MESSAGES/glib20.mo
/usr/share/locale/sr/LC_MESSAGES/glib20.mo
/usr/share/locale/sr@ije/LC_MESSAGES/glib20.mo
/usr/share/locale/sr@latin/LC_MESSAGES/glib20.mo
/usr/share/locale/sv/LC_MESSAGES/glib20.mo
/usr/share/locale/ta/LC_MESSAGES/glib20.mo
/usr/share/locale/te/LC_MESSAGES/glib20.mo
/usr/share/locale/tg/LC_MESSAGES/glib20.mo
/usr/share/locale/th/LC_MESSAGES/glib20.mo
/usr/share/locale/tl/LC_MESSAGES/glib20.mo
/usr/share/locale/tr/LC_MESSAGES/glib20.mo
/usr/share/locale/tt/LC_MESSAGES/glib20.mo
/usr/share/locale/ug/LC_MESSAGES/glib20.mo
/usr/share/locale/uk/LC_MESSAGES/glib20.mo
/usr/share/locale/vi/LC_MESSAGES/glib20.mo
/usr/share/locale/wa/LC_MESSAGES/glib20.mo
/usr/share/locale/xh/LC_MESSAGES/glib20.mo
/usr/share/locale/yi/LC_MESSAGES/glib20.mo
/usr/share/locale/zh_CN/LC_MESSAGES/glib20.mo
/usr/share/locale/zh_HK/LC_MESSAGES/glib20.mo
/usr/share/locale/zh_TW/LC_MESSAGES/glib20.mo
/usr/share/man/man1/gapplication.1.gz
/usr/share/man/man1/gdbus.1.gz
/usr/share/man/man1/gio-querymodules.1.gz
/usr/share/man/man1/gio.1.gz
/usr/share/man/man1/glib-compile-schemas.1.gz
/usr/share/man/man1/gsettings.1.gz

References

Summary

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