How To Install libmnl on Fedora 34

libmnl is A minimalistic Netlink library A minimalistic Netlink library

Introduction

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

What is libmnl

libmnl is a minimalistic user-space library oriented to Netlink developers. There are a lot of common tasks in parsing, validating, constructing of both the Netlink header and TLVs that are repetitive and easy to get wrong. This library aims to provide simple helpers that allows you to re-use code and to avoid re-inventing the wheel. libmnl 1.0.4 13.fc34 x86_64 28 k libmnl-1.0.4-13.fc34.src.rpm fedora A minimalistic Netlink library http LGPLv2+ libmnl is a minimalistic user-space library oriented to Netlink developers. There are a lot of common tasks in parsing, validating, constructing of both the Netlink header and TLVs that are repetitive and easy to get wrong. This library aims to provide simple helpers that allows you to re-use code and to avoid re-inventing the wheel.

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

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

sudo dnf -y install libmnl

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

sudo yum -y install libmnl

How To Uninstall libmnl on Fedora 34

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

sudo dnf remove libmnl

libmnl Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/6b
/usr/lib/.build-id/6b/d67c3bc1ecc10f38436afeaf1b6bd716c1f9c0
/usr/lib64/libmnl.so.0
/usr/lib64/libmnl.so.0.2.0
/usr/share/doc/libmnl
/usr/share/doc/libmnl/README
/usr/share/licenses/libmnl
/usr/share/licenses/libmnl/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/8f560033e8c59949a20f4e0d89149b38990d71
/usr/lib/libmnl.so.0
/usr/lib/libmnl.so.0.2.0
/usr/share/doc/libmnl
/usr/share/doc/libmnl/README
/usr/share/licenses/libmnl
/usr/share/licenses/libmnl/COPYING

References

Summary

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