pcapinfo command not found

In this troubleshooting guide we learn how to fix pcapinfo command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

pcapinfo: command not found

or when using sudo you get the following error message

sudo: pcapinfo: command not found

Solutions to pcapinfo: command not found

How To Fix pcapinfo: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pcapinfo is provided by libnet-pcap-perl package.

libnet-pcap-perl is:

Net::Pcap allows the user to interface with the LBL pcap(3) library. Libpcap describes itself as “a system-independent interface for user-level packet capture. Libpcap provides a portable framework for low-level network monitoring.” This modules gives a program the ability to capture data from a network interface in a similar way tcpdump does.

To fix this problem, we can install more using the command below.

sudo apt-get -y install libnet-pcap-perl

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libnet-pcap-perl.

sudo apt -y install libnet-pcap-perl

Or if you have aptitude installed you can use the following command.

sudo aptitude install libnet-pcap-perl

Summary

In this tutorial we learn how to fix pcapinfo command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.