macOS
brew install ngreplocal Homebrew formula metadata
sudo port install ngrepMacPorts ports tree · net/ngrep/Portfile · source: api.github.com
brew
Network grep. Version 1.49.0 via Homebrew; verified 2026-06-25.
install
brew install ngreplocal Homebrew formula metadata
sudo port install ngrepMacPorts ports tree · net/ngrep/Portfile · source: api.github.com
sudo apk add ngrepAlpine Linux edge package indexes · ngrep · source: dl-cdn.alpinelinux.org
sudo apt install ngrepDebian stable package indexes · ngrep · source: deb.debian.org
sudo dnf install ngrepFedora Rawhide package metadata · ngrep · source: dl.fedoraproject.org
nix profile install nixpkgs#ngrepnixpkgs package indexes · pkgs/by-name/ng/ngrep/package.nix · source: api.github.com
sudo pacman -S ngrepArch Linux sync databases · ngrep · source: geo.mirror.pkgbuild.com
sudo zypper install ngrepopenSUSE Tumbleweed package metadata · ngrep · source: download.opensuse.org
overview
Network grep
history
ngrep is "network grep": a pcap-based command-line packet analyzer that applies regular-expression or hexadecimal matching to packet payloads while also accepting BPF filters like tcpdump. It is built for quick inspection of plaintext traffic and saved capture files.
ngrep was written by Jordan Ritter and dates back to the early 2000s; a freshmeat announcement for ngrep 1.39.1 appeared on April 23, 2001. The tool's identity has stayed stable: bring GNU grep-style matching to the network layer.
The project lived for years as a classic Unix network utility and later moved active issue and patch handling to GitHub. Its README still frames ngrep as a PCAP tool that understands IPv4/IPv6, TCP, UDP, ICMP, IGMP, raw packets, several link-layer interface types, and BPF filter logic.
ngrep became a small but widely packaged troubleshooting utility because it sits between tcpdump and a full packet analyzer. It was included de facto in many popular distributions over decades, and the maintainer explicitly asks distribution package maintainers to forward bugs and patches so upstream can track downstream fixes.
Its adoption is bounded by encryption. ngrep is excellent for DNS, old HTTP, SMTP, SIP, IMAP, test traffic, malware beacons in plaintext, and pcap triage; it is less useful when payloads are TLS-encrypted unless the useful signal is in headers, metadata, or local decrypted test traffic.
A typical workflow is `sudo ngrep -d any -W byline 'Host:|User-Agent:' tcp port 80`, or using an empty match expression with a BPF filter to print payloads for a protocol. It can read and write pcap dump files, making it useful for quick command-line passes before opening Wireshark.
Package nerds install it because it is the fast, memorable answer to "show me packets containing this string". It is especially handy on servers where a GUI analyzer is unavailable and tcpdump output is too raw for the immediate question.
ngrep is a survivor from the era when small C network tools solved one sharp problem well. It matters less as a dependency and more as an operator tool: a tiny package that can save a debugging session when traffic is still human-readable.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
ngrep | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:ngrep |
|---|---|
| Version | 1.49.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/ngrep |
| Homepage | https://github.com/jpr5/ngrep |
| Repository | https://github.com/jpr5/ngrep |
| Upstream docs | https://github.com/jpr5/ngrep#readme |
| License | ngrep |
| Source archive | https://github.com/jpr5/ngrep/archive/refs/tags/v1.49.0.tar.gz |
| Last updated | 2026-06-25T13:37:57+02:00 |
| Pulse | updated |
| Dependencies | libpcap, pcre2 |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | ngrep |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
ngrep 1.47+ds1-6
grep for network traffic
sudo apt install ngrepngrep
nix profile install nixpkgs#ngrepngrep 1.47+ds1-5build2
grep for network traffic
sudo apt install ngrepngrep 1.49.0-r0
A grep-like utility that allows you to search for network packets on an interface
https://ngrep.sourceforge.net/
sudo apk add ngrepngrep-dbg 1.49.0-r0
A grep-like utility that allows you to search for network packets on an interface (debug symbols)
https://ngrep.sourceforge.net/
sudo apk add ngrep-dbgngrep-doc 1.49.0-r0
A grep-like utility that allows you to search for network packets on an interface (documentation)
https://ngrep.sourceforge.net/
sudo apk add ngrep-docngrep 1.47^20241209gitb2e3ba3-4.fc44
Network layer grep tool
sudo dnf install ngrepngrep 1.49.0-1
A grep-like utility that allows you to search for network packets on an interface.
https://github.com/jpr5/ngrep/
sudo pacman -S ngrepngrep 1.49.0-1.3
Network grep
sudo zypper install ngrepngrep
sudo port install ngrepsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.