How To Install libdnet.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libdnet.x86_64 in Amazon Linux 2. libdnet.x86_64 is Simple portable interface to lowlevel networking routines

Introduction

In this tutorial we learn how to install libdnet.x86_64 on Amazon Linux 2.

What is libdnet.x86_64

libdnet provides a simplified, portable interface to several low-level networking routines, including network address manipulation, kernel arp(4) cache and route(4) table lookup and manipulation, network firewalling (IP filter, ipfw, ipchains, pf, …), network interface lookup and manipulation, raw IP packet and Ethernet frame, and data transmission.

We can use yum to install libdnet.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install libdnet.x86_64.

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

sudo yum -y install libdnet.x86_64

How To Uninstall libdnet.x86_64 on Amazon Linux 2

To uninstall only the libdnet.x86_64 package we can use the following command:

sudo yum remove libdnet.x86_64

libdnet.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libdnet.so.1
/usr/lib64/libdnet.so.1.0.1
/usr/share/doc/libdnet-1.12
/usr/share/doc/libdnet-1.12/LICENSE
/usr/share/doc/libdnet-1.12/README
/usr/share/doc/libdnet-1.12/THANKS
/usr/share/doc/libdnet-1.12/TODO

References

Summary

In this tutorial we learn how to install libdnet.x86_64 on Amazon Linux 2 using yum.