ngrep command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ngrep: command not found
or when using sudo you get the following error message
sudo: ngrep: command not found
Solutions to ngrep: command not found
How To Fix ngrep: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ngrep is provided by ngrep package.
ngrep is:
ngrep strives to provide most of GNU grep’s common features, applying them to the network layer. ngrep is a pcap-aware tool that will allow you to specify extended regular expressions to match against data payloads of packets. It currently recognizes TCP, UDP and ICMP across Ethernet, PPP, SLIP and null interfaces, and understands bpf filter logic in the same fashion as more common packet sniffing tools, such as tcpdump and snoop.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ngrep
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ngrep.
sudo apt -y install ngrep
Or if you have aptitude installed you can use the following command.
sudo aptitude install ngrep
Summary
In this tutorial we learn how to fix ngrep command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.