How To Install libnet on Fedora 34

libnet is C library for portable packet creation and injection C library for portable packet creation and injection

Introduction

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

What is libnet

Libnet is an API to help with the construction and handling of network packets. It provides a portable framework for low-level network packet writing and handling (use libnet in conjunction with libpcap and you can write some really cool stuff). Libnet includes packet creation at the IP layer and at the link layer as well as a host of supplementary and complementary functionality. libnet 1.2 2.fc34 x86_64 58 k libnet-1.2-2.fc34.src.rpm fedora C library for portable packet creation and injection https BSD Libnet is an API to help with the construction and handling of network packets. It provides a portable framework for low-level network packet writing and handling (use libnet in conjunction with libpcap and you can write some really cool stuff). Libnet includes packet creation at the IP layer and at the link layer as well as a host of supplementary and complementary functionality.

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

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

sudo dnf -y install libnet

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

sudo yum -y install libnet

How To Uninstall libnet on Fedora 34

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

sudo dnf remove libnet

libnet Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/83
/usr/lib/.build-id/83/945667a3f8fcc26a14875acf75cf126b8a4a63
/usr/lib64/libnet.so.1
/usr/lib64/libnet.so.1.8.0
/usr/share/doc/libnet
/usr/share/doc/libnet/ChangeLog.md
/usr/share/doc/libnet/README.md
/usr/share/licenses/libnet
/usr/share/licenses/libnet/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/5684692d7240c026c19d3d0dbc7691931eb985
/usr/lib/libnet.so.1
/usr/lib/libnet.so.1.8.0
/usr/share/doc/libnet
/usr/share/doc/libnet/ChangeLog.md
/usr/share/doc/libnet/README.md
/usr/share/licenses/libnet
/usr/share/licenses/libnet/LICENSE

References

Summary

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