Install Ngrep On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS
Maintainer: Romain Francoise
Email: [email protected] .
Website: https://github.com/jpr5/ngrep
Section: net
Install ngrep
-
Debian
apt-get install ngrepClick to copy -
Ubuntu
apt-get install ngrepClick to copy -
Alpine OS
apk add ngrepClick to copy -
Arch Linux
pacman -S ngrepClick to copy -
Kali Linux
apt-get install ngrepClick to copy -
Fedora
dnf install ngrepClick to copy -
Raspbian
apt-get install ngrepClick to copy -
macOS
brew install ngrepClick to copy
Filter network traffic packets using regular expressions.
How to use ngrep?
Below are few example commands for ngrep that you can use in the terminal.
Capture traffic of all interfaces:ngrep -d anyClick to copyCapture traffic of a specific interface:ngrep -d eth0Click to copyCapture traffic crossing port 22 of interface eth0:ngrep -d eth0 port 22Click to copyCapture traffic from or to a host:ngrep host www.example.comClick to copyFilter keyword 'User-Agent:' of interface eth0:ngrep -d eth0 'User-Agent:'Click to copy
To install the latest version of ngrep in your favorite operating system just copy the ngrep installation command from above and paste it into terminal. It will download and install the latest version of ngrep 2026 package in your OS.




