How To Install libpcap.i686 on Amazon Linux 2

In this tutorial we learn how to install libpcap.i686 in Amazon Linux 2. libpcap.i686 is A system-independent interface for user-level packet capture

Introduction

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

What is libpcap.i686

Libpcap provides a portable framework for low-level network monitoring. Libpcap can provide network statistics collection, security monitoring and network debugging. Since almost every system vendor provides a different interface for packet capture, the libpcap authors created this system-independent API to ease in porting and to alleviate the need for several system-dependent packet capture modules in each application. Install libpcap if you need to do low-level network traffic monitoring on your network.

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

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

sudo yum -y install libpcap.i686

How To Uninstall libpcap.i686 on Amazon Linux 2

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

sudo yum remove libpcap.i686

libpcap.i686 Package Contents on Amazon Linux 2

/usr/lib/libpcap.so.1
/usr/lib/libpcap.so.1.5.3
/usr/share/doc/libpcap-1.5.3
/usr/share/doc/libpcap-1.5.3/CHANGES
/usr/share/doc/libpcap-1.5.3/CREDITS
/usr/share/doc/libpcap-1.5.3/LICENSE
/usr/share/doc/libpcap-1.5.3/README
/usr/share/man/man7/pcap-filter.7.gz
/usr/share/man/man7/pcap-linktype.7.gz
/usr/share/man/man7/pcap-tstamp.7.gz

References

Summary

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