How To Install libnet.i686 on Amazon Linux 2

In this tutorial we learn how to install libnet.i686 in Amazon Linux 2. libnet.i686 is C library for portable packet creation and injection

Introduction

In this tutorial we learn how to install libnet.i686 on Amazon Linux 2.

What is libnet.i686

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 to install libnet.i686 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install libnet.i686.

Install libnet.i686 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libnet.i686 using yum by running the following command:

sudo yum -y install libnet.i686

How To Uninstall libnet.i686 on Amazon Linux 2

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

sudo yum remove libnet.i686

libnet.i686 Package Contents on Amazon Linux 2

/usr/lib/libnet.so.1
/usr/lib/libnet.so.1.7.0
/usr/share/doc/libnet-1.1.6
/usr/share/doc/libnet-1.1.6/CHANGELOG
/usr/share/doc/libnet-1.1.6/CONTRIB
/usr/share/doc/libnet-1.1.6/COPYING
/usr/share/doc/libnet-1.1.6/README

References

Summary

In this tutorial we learn how to install libnet.i686 on Amazon Linux 2 using yum.