Install Tcpdump On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS
Maintainer: Romain Francoise
Email: [email protected] .
Website: http://www.tcpdump.org/
Section: net
Install tcpdump
-
Debian
apt-get install tcpdumpClick to copy -
Ubuntu
apt-get install tcpdumpClick to copy -
Alpine OS
apk add tcpdumpClick to copy -
Arch Linux
pacman -S tcpdumpClick to copy -
Kali Linux
apt-get install tcpdumpClick to copy -
CentOS
yum install tcpdumpClick to copy -
Fedora
dnf install tcpdumpClick to copy -
Raspbian
apt-get install tcpdumpClick to copy -
macOS
brew install tcpdumpClick to copy
Dump traffic on a network.
How to use tcpdump?
Below are few example commands for tcpdump that you can use in the terminal.
List available network interfaces:tcpdump -DClick to copyCapture the traffic of a specific interface:tcpdump -i eth0Click to copyCapture all TCP traffic showing contents (ASCII) in console:tcpdump -A tcpClick to copyCapture the traffic from or to a host:tcpdump host www.example.comClick to copyCapture the traffic from a specific interface, source, destination and destination port:tcpdump -i eth0 src 192.168.1.1 and dst 192.168.1.2 and dst port 80Click to copyCapture the traffic of a network:tcpdump net 192.168.1.0/24Click to copyCapture all traffic except traffic over port 22 and save to a dump file:tcpdump -w dumpfile.pcap not port 22Click to copyRead from a given dump file:tcpdump -r dumpfile.pcapClick to copy
Installing tcpdump command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of tcpdump 2026 package in your OS.




