How To Install glib on Fedora 34

glib is A library of handy utility functions A library of handy utility functions

Introduction

In this tutorial we learn how to install glib on Fedora 34.

What is glib

GLib is a handy library of utility functions. This C library is designed to solve some portability problems and provide other useful functionality that most programs require. glib 1 1.2.10 62.fc34 x86_64 146 k glib-1.2.10-62.fc34.src.rpm fedora A library of handy utility functions http LGPLv2+ GLib is a handy library of utility functions. This C library is designed to solve some portability problems and provide other useful functionality that most programs require.

We can use yum or dnf to install glib on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install glib.

Install glib on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install glib using dnf by running the following command:

sudo dnf -y install glib

Install glib on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install glib using yum by running the following command:

sudo yum -y install glib

How To Uninstall glib on Fedora 34

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

sudo dnf remove glib

glib Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/12
/usr/lib/.build-id/12/13ec01bab6d5d0c5b615228639f7ed95b8a63e
/usr/lib/.build-id/20
/usr/lib/.build-id/20/829db4dec7a2b29ea50102efbef7737bb3a141
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/0a7e35ed124c7208361c5c1b5b5a9b941cc60a
/usr/lib/libglib-1.2.so.0
/usr/lib/libglib-1.2.so.0.0.10
/usr/lib/libgmodule-1.2.so.0
/usr/lib/libgmodule-1.2.so.0.0.10
/usr/lib/libgthread-1.2.so.0
/usr/lib/libgthread-1.2.so.0.0.10
/usr/share/doc/glib
/usr/share/doc/glib/AUTHORS
/usr/share/doc/glib/ChangeLog
/usr/share/doc/glib/NEWS
/usr/share/doc/glib/README
/usr/share/licenses/glib
/usr/share/licenses/glib/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/64
/usr/lib/.build-id/64/e6c29f9b4fb8008a918cfbfd918d6c05047eae
/usr/lib/.build-id/98
/usr/lib/.build-id/98/a0606978387b63ead8c7659893388e4fbea1f8
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/ec0afdef0c83fb8f4c0b3f045eeaa21c033b4e
/usr/lib64/libglib-1.2.so.0
/usr/lib64/libglib-1.2.so.0.0.10
/usr/lib64/libgmodule-1.2.so.0
/usr/lib64/libgmodule-1.2.so.0.0.10
/usr/lib64/libgthread-1.2.so.0
/usr/lib64/libgthread-1.2.so.0.0.10
/usr/share/doc/glib
/usr/share/doc/glib/AUTHORS
/usr/share/doc/glib/ChangeLog
/usr/share/doc/glib/NEWS
/usr/share/doc/glib/README
/usr/share/licenses/glib
/usr/share/licenses/glib/COPYING

References

Summary

In this tutorial we learn how to install glib on Fedora 34 using yum and dnf.