How To Install perl-Net-Pcap on Rocky Linux 8

In this tutorial we learn how to install perl-Net-Pcap on Rocky Linux 8. perl-Net-Pcap is Interface to pcap(3) LBL packet capture library

Introduction

In this tutorial we learn how to install perl-Net-Pcap on Rocky Linux 8.

What is perl-Net-Pcap

perl-Net-Pcap provides Perl bindings to the LBL pcap(3) library.

We can use yum or dnf to install perl-Net-Pcap on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Net-Pcap.

Install perl-Net-Pcap on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install perl-Net-Pcap using dnf by running the following command:

sudo dnf -y install perl-Net-Pcap

Install perl-Net-Pcap on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-Net-Pcap using yum by running the following command:

sudo yum -y install perl-Net-Pcap

How To Uninstall perl-Net-Pcap on Rocky Linux 8

To uninstall only the perl-Net-Pcap package we can use the following command:

sudo dnf remove perl-Net-Pcap

perl-Net-Pcap Package Contents on Rocky Linux 8

/usr/bin/pcapinfo
/usr/lib/.build-id
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/1fc3251ac5bd9745343db76d5a44d0d4a2bfa5
/usr/lib64/perl5/vendor_perl/Net
/usr/lib64/perl5/vendor_perl/Net/Pcap.pm
/usr/lib64/perl5/vendor_perl/auto/Net
/usr/lib64/perl5/vendor_perl/auto/Net/Pcap
/usr/lib64/perl5/vendor_perl/auto/Net/Pcap/Pcap.so
/usr/share/doc/perl-Net-Pcap
/usr/share/doc/perl-Net-Pcap/Changes
/usr/share/doc/perl-Net-Pcap/README
/usr/share/doc/perl-Net-Pcap/eg
/usr/share/doc/perl-Net-Pcap/eg/pcapdump
/usr/share/doc/perl-Net-Pcap/eg/pktdump.pl
/usr/share/doc/perl-Net-Pcap/t
/usr/share/doc/perl-Net-Pcap/t/00-load.t
/usr/share/doc/perl-Net-Pcap/t/01-api.t
/usr/share/doc/perl-Net-Pcap/t/02-lookup.t
/usr/share/doc/perl-Net-Pcap/t/03-openlive.t
/usr/share/doc/perl-Net-Pcap/t/04-loop.t
/usr/share/doc/perl-Net-Pcap/t/05-dump.t
/usr/share/doc/perl-Net-Pcap/t/06-offline.t
/usr/share/doc/perl-Net-Pcap/t/07-stats.t
/usr/share/doc/perl-Net-Pcap/t/08-filter.t
/usr/share/doc/perl-Net-Pcap/t/09-error.t
/usr/share/doc/perl-Net-Pcap/t/10-fileno.t
/usr/share/doc/perl-Net-Pcap/t/11-snapshot.t
/usr/share/doc/perl-Net-Pcap/t/12-next.t
/usr/share/doc/perl-Net-Pcap/t/13-dispatch.t
/usr/share/doc/perl-Net-Pcap/t/14-datalink.t
/usr/share/doc/perl-Net-Pcap/t/15-is_swapped.t
/usr/share/doc/perl-Net-Pcap/t/16-setnonblock.t
/usr/share/doc/perl-Net-Pcap/t/17-lib_version.t
/usr/share/doc/perl-Net-Pcap/t/18-open_dead.t
/usr/share/doc/perl-Net-Pcap/t/19-breakloop.t
/usr/share/doc/perl-Net-Pcap/t/20-constants.t
/usr/share/doc/perl-Net-Pcap/t/21-next_ex.t
/usr/share/doc/perl-Net-Pcap/t/22-open.t
/usr/share/doc/perl-Net-Pcap/t/23-srcstr.t
/usr/share/doc/perl-Net-Pcap/t/50-anyevent-pcap.t
/usr/share/doc/perl-Net-Pcap/t/50-net-pcap-easy.t
/usr/share/doc/perl-Net-Pcap/t/50-poe-component-pcap.t
/usr/share/doc/perl-Net-Pcap/t/README
/usr/share/doc/perl-Net-Pcap/t/Utils.pm
/usr/share/doc/perl-Net-Pcap/t/distchk.t
/usr/share/doc/perl-Net-Pcap/t/pod.t
/usr/share/doc/perl-Net-Pcap/t/podcover.t
/usr/share/doc/perl-Net-Pcap/t/podspell.t
/usr/share/doc/perl-Net-Pcap/t/portfs.t
/usr/share/doc/perl-Net-Pcap/t/samples
/usr/share/doc/perl-Net-Pcap/t/samples/ping-ietf-20pk-be.dmp
/usr/share/doc/perl-Net-Pcap/t/samples/ping-ietf-20pk-le.dmp
/usr/share/man/man1/pcapinfo.1.gz
/usr/share/man/man3/Net::Pcap.3pm.gz

References

Summary

In this tutorial we learn how to install perl-Net-Pcap on Rocky Linux 8 using yum and dnf.