# tcpdump

> A powerful command-line packet analyzer

Source: https://talira.ai/catalog/tcpdump-1mt2hf7k
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [networking / packet analysis](https://talira.ai/categories/networking/packet-analysis)
- Platforms: linux, macos, windows, cli[^6]
- Licence: BSD-3-Clause[^4]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Self-hostable: yes[^5]
- Backed by: [The Tcpdump Group](https://talira.ai/orgs/tcpdump-group.md)
- Creator: Van Jacobson
- Sponsors: Sovereign Tech Agency

tcpdump is the classic command-line packet analyzer from The Tcpdump Group: it captures traffic on a network interface, keeps the packets that match a filter expression, and prints a decoded line (or a hex and ASCII dump) for each one, or writes the raw packets to a pcap file to read later with tcpdump, [Wireshark](https://talira.ai/catalog/wireshark-h4r9pgqd.md) or other tools. It's built on [libpcap](https://talira.ai/catalog/libpcap-qt4dvtby.md), the Group's portable C/C++ library for packet capture, which provides the BPF filter language and pcap file format that most capture tools share. Originally written by Van Jacobson as part of research into TCP and gateway performance, it runs on Linux, [macOS](https://talira.ai/catalog/macos-8swyggxb.md), the BSDs, Solaris, illumos and more, and on Windows with [Npcap](https://talira.ai/catalog/npcap-y4hznwg1.md) or WinPcap. It's BSD-licensed, and in 2025 the Sovereign Tech Agency paid one maintainer part-time to work on libpcap.

## Links

- Website: https://www.tcpdump.org/
- GitHub: https://github.com/the-tcpdump-group/tcpdump
- Docs: https://www.tcpdump.org/manpages/tcpdump.1.html

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/tcpdump>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/tcpdump>[^2]

## Problems it solves

- see the packets going in and out of a server's network interface from an SSH session
- capture traffic on a remote Linux box to a pcap file and open it in Wireshark on my laptop
- check whether a server's DNS queries are actually leaving the machine
- narrow a packet capture down to one host and port with a short filter expression
- debug why a TCP connection resets by watching the handshake and flags packet by packet
- rotate packet capture files by size or time so a long capture doesn't fill the disk
- print packet contents as hex and ASCII to see what a client is really sending
- capture network traffic on a minimal server or container that has no desktop
- a portable C library for capturing packets in my own network monitoring program

## Features

- live capture from network interfaces with BPF filter expressions
- decoded one-line output per packet for many protocols
- hex and ASCII payload dumps
- writes and reads pcap capture files, with file rotation
- built on libpcap, a portable C/C++ packet capture library maintained by the same group

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.46 out of 1.
Signals: backing 0.65, extensibility 0.20.

- backed by The Tcpdump Group
- created by Van Jacobson
- sponsored by Sovereign Tech Agency

Warnings:

- GitHub activity not fetched yet

## Related

- Based on [libpcap](https://talira.ai/catalog/libpcap-qt4dvtby.md)

## Alternatives

- [Wireshark](https://talira.ai/catalog/wireshark-h4r9pgqd.md): The world's leading network protocol analyzer
- [Termshark](https://talira.ai/catalog/termshark-6pknqzv3.md): A terminal UI for tshark, inspired by Wireshark
- [ngrep](https://talira.ai/catalog/ngrep-qk1tdraf.md): grep applied to the network layer
- [Kubeshark](https://talira.ai/catalog/kubeshark-hxw6ayw2.md): Network Observability for SREs & AI Agents
- [libpcap](https://talira.ai/catalog/libpcap-qt4dvtby.md): A portable C/C++ library for network traffic capture
- [Npcap](https://talira.ai/catalog/npcap-y4hznwg1.md): Packet capture library for Windows

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^3]: https://www.tcpdump.org/ (checked 20 Nov 2026)
[^4]: https://github.com/the-tcpdump-group/tcpdump/blob/master/LICENSE (checked 20 Nov 2026)
[^5]: https://github.com/the-tcpdump-group/tcpdump (checked 20 Nov 2026)
[^6]: https://github.com/the-tcpdump-group/tcpdump/blob/master/README.md (checked 20 Nov 2026)
