How To Install libnet10 on CentOS 7

In this tutorial we learn how to install libnet10 on CentOS 7. libnet10 is High-level API (toolkit) to construct and inject network packets

Introduction

In this tutorial we learn how to install libnet10 on CentOS 7.

What is libnet10

Libnet is a high-level API (toolkit) allowing the application programmer to construct and inject network packets. It provides a portable and simplified interface for low-level network packet shaping, handling and injection. Libnet hides much of the tedium of packet creation from the application programmer such as multiplexing, buffer management, arcane packet header information, byte-ordering, OS-dependent issues and much more. Libnet features portable packet creation interfaces at the IP layer and link layer, as well as a host of supplementary and complementary functionality. This package contains an old and deprecated version of libnet. You need it only if the software you are using hasn’t been updated to work with the newer version and the newer API.

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

Install libnet10 on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install libnet10

Install libnet10 on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install libnet10

How To Uninstall libnet10 on CentOS 7

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

sudo dnf remove libnet10

References

Summary

In this tutorial we learn how to install libnet10 on CentOS 7 using yum and dnf.