macOS
brew install libpcaplocal Homebrew formula metadata
sudo port install libpcapMacPorts ports tree · net/libpcap/Portfile · source: api.github.com
brew
Portable library for network traffic capture. Version 1.10.6 via Homebrew; verified from local package data.
install
brew install libpcaplocal Homebrew formula metadata
sudo port install libpcapMacPorts ports tree · net/libpcap/Portfile · source: api.github.com
sudo apk add libpcapAlpine Linux edge package indexes · libpcap · source: dl-cdn.alpinelinux.org
sudo apt install libpcap-devDebian stable package indexes · libpcap-dev · source: deb.debian.org
sudo dnf install libpcapFedora Rawhide package metadata · libpcap · source: dl.fedoraproject.org
nix profile install nixpkgs#libpcapnixpkgs package indexes · pkgs/by-name/li/libpcap/package.nix · source: api.github.com
sudo pacman -S libpcapArch Linux sync databases · libpcap · source: geo.mirror.pkgbuild.com
sudo zypper install libpcap-developenSUSE Tumbleweed package metadata · libpcap-devel · source: download.opensuse.org
overview
Portable library for network traffic capture
history
libpcap is the portable packet-capture library maintained with tcpdump by The Tcpdump Group. It gives programs a common C API for capturing packets and compiling packet filters across Unix-like operating systems whose native capture interfaces differ.
The project grew out of the tcpdump and Berkeley Packet Filter lineage. Steve McCanne's SharkFest 2011 talk traces the packet-capture work back to a 1988 Berkeley/Lawrence Berkeley Laboratory setting, while the 1993 BPF paper documents the kernel/user-level filtering architecture that made efficient capture practical.
The Tcpdump Group later maintained libpcap as a separate library paired with tcpdump. The repository and CHANGES file show long-running attention to operating-system capture backends, filter syntax, savefile reading, remote capture support, and ABI concerns.
libpcap became infrastructure rather than an end-user application: tcpdump, analyzers, monitors, and security tools can link against one API while relying on each operating system's capture mechanism underneath. The upstream README explicitly addresses Linux distributions and BSD systems that ship libpcap and warns packagers not to encode release-specific sonames.
Its adoption is also tied to the pcap file and filter culture around tcpdump: packet captures, reproducible troubleshooting, and command-line network forensics all use libpcap conventions even when users interact through higher-level tools.
Developers use libpcap to enumerate capture devices, open live or saved captures, compile packet filters, and read packet records. Package-manager users usually install it as a dependency of network tools or as development headers for software that needs packet capture.
The small `pcap-config` utility is package-nerd visible because build systems and ports use it to discover compiler and linker flags for libpcap.
libpcap matters because it is a thin but durable portability layer over messy kernel capture APIs. It is the package that turns packet capture from an operating-system-specific problem into a linkable library dependency.
It is also a classic packaging stress test: headers, shared-library ABI, privileged capture behavior, optional capture backends, and security-sensitive parsers all meet in one small C library.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
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 |
|---|---|---|---|
pcap-config | 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:libpcap |
|---|---|
| Version | 1.10.6 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/libpcap |
| Homepage | https://www.tcpdump.org/ |
| Repository | https://github.com/the-tcpdump-group/libpcap |
| Upstream docs | https://www.tcpdump.org/manpages |
| License | BSD-3-Clause |
| Source archive | https://www.tcpdump.org/release/libpcap-1.10.6.tar.gz |
| 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 | libpcap |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libpcap-dev 1.10.5-2
development library for libpcap (transitional package)
sudo apt install libpcap-devlibpcap0.8-dev 1.10.5-2
development library and header files for libpcap0.8t64
sudo apt install libpcap0.8-devlibpcap0.8t64 1.10.5-2
system interface for user-level packet capture
sudo apt install libpcap0.8t64libpcap
nix profile install nixpkgs#libpcaplibpcap-dev 1.10.4-4.1ubuntu3
development library for libpcap (transitional package)
sudo apt install libpcap-devlibpcap0.8-dev 1.10.4-4.1ubuntu3
development library and header files for libpcap0.8t64
sudo apt install libpcap0.8-devlibpcap0.8t64 1.10.4-4.1ubuntu3
system interface for user-level packet capture
sudo apt install libpcap0.8t64libpcap 1.10.6-r1
Portable library for network traffic capture
sudo apk add libpcaplibpcap-dev 1.10.6-r1
Portable library for network traffic capture (development files)
sudo apk add libpcap-devlibpcap-doc 1.10.6-r1
Portable library for network traffic capture (documentation)
sudo apk add libpcap-doclibpcap 1.10.6-2.fc44
A system-independent interface for user-level packet capture
sudo dnf install libpcaplibpcap-devel 1.10.6-2.fc44
Libraries and header files for the libpcap library
sudo dnf install libpcap-devellibpcap 1.10.6-1
A system-independent interface for user-level packet capture
sudo pacman -S libpcaplibpcap-devel 1.10.6-1.4
A Library for Network Sniffers
sudo zypper install libpcap-devellibpcap-devel-32bit 1.10.6-1.4
A Library for Network Sniffers
sudo zypper install libpcap-devel-32bitlibpcap-devel-static 1.10.6-1.4
A Library for Network Sniffers
sudo zypper install libpcap-devel-staticsource 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.