How To Install gnet2 on Fedora 34

gnet2 is A simple network library built upon glib A simple network library built upon glib

Introduction

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

What is gnet2

GNet is a simple network library. It is written in C, object-oriented, and built upon GLib. It is intended to be easy to use and port. gnet2 2.0.8 24.fc34 x86_64 85 k gnet2-2.0.8-24.fc34.src.rpm fedora A simple network library built upon glib http LGPLv2+ GNet is a simple network library. It is written in C, object-oriented, and built upon GLib. It is intended to be easy to use and port.

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

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

sudo dnf -y install gnet2

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

sudo yum -y install gnet2

How To Uninstall gnet2 on Fedora 34

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

sudo dnf remove gnet2

gnet2 Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/51
/usr/lib/.build-id/51/9052082afea2319f46441591ddabc7fb464de1
/usr/lib/libgnet-2.0.so.0
/usr/lib/libgnet-2.0.so.0.8.0
/usr/share/doc/gnet2
/usr/share/doc/gnet2/AUTHORS
/usr/share/doc/gnet2/BUGS
/usr/share/doc/gnet2/COPYING
/usr/share/doc/gnet2/NEWS
/usr/share/doc/gnet2/README
/usr/share/doc/gnet2/TODO
/usr/lib/.build-id
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/ecde04de17af2e537c26000b96c78a1b2c2745
/usr/lib64/libgnet-2.0.so.0
/usr/lib64/libgnet-2.0.so.0.8.0
/usr/share/doc/gnet2
/usr/share/doc/gnet2/AUTHORS
/usr/share/doc/gnet2/BUGS
/usr/share/doc/gnet2/COPYING
/usr/share/doc/gnet2/NEWS
/usr/share/doc/gnet2/README
/usr/share/doc/gnet2/TODO

References

Summary

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