Use this:
sudo apt-get install libpcap-dev
Answer from oddone on askubuntu.comGitHub
github.com › the-tcpdump-group › libpcap › blob › master › INSTALL.md
libpcap/INSTALL.md at master · the-tcpdump-group/libpcap
The -G flag can be used to select the CMake "generator" appropriate for the build system you're using; various -D flags can be used to control the configuration of libpcap. Run the build tool. If everything goes well, you can su to root and run the build tool with the install target.
Author the-tcpdump-group
O'Reilly
oreilly.com › library › view › security-with-go › 9781788627917 › f8829d03-9243-42c0-b748-50377c96d293.xhtml
Installing libpcap on Ubuntu - Security with Go [Book]
January 31, 2018 - In Ubuntu, libpcap-0.8 is already installed by default. To install the gopacket library, though, you also need the header files in the development package. You can install the header files through the libpcap-dev package.
Author John Daniel Leon
Published 2018
Pages 340
Ardikars
pcap.ardikars.com › getting-started › installing-libpcap-or-npcap
Installing Libpcap or Npcap | Pcap
October 20, 2020 - } # Run installer Start-Process $PSScriptRoot"\npcap.exe" -ArgumentList "/S /npf_startup=yes /loopback_support=yes /dlt_null=no /admin_only=no /dot11_support=no /vlan_support=no /winpcap_mode=yes" -wait echo "Npcap has been installed." ... Libpcap should be installed on Mac OS X by default.
Use this:
sudo apt-get install libpcap-dev
Answer from oddone on askubuntu.comStack Overflow
stackoverflow.com › questions › 69261847 › how-to-install-libpcap-with-c-language-windows-10-problems-with-user-manual
shared libraries - How To Install Libpcap With C language Windows 10 - problems with user manual - Stack Overflow
What you need is the library and header files to be able to use it. The source code is here: winpcap.org/install/bin/WpcapSrc_4_1_3.zip ... CORRECTION: libpcap compiles on Windows now, so just build tcpdump.org/release/libpcap-1.10.1.tar.gz
TCPDUMP & LIBPCAP
tcpdump.org
Home | TCPDUMP & LIBPCAP
Other documents: README, installation notes and change log. Programming with pcap by Tim Carstens. The BSD Packet Filter: A New Architecture for User-level Packet Capture by Steven McCanne and Van Jacobson (Usenix Winter 1993). [PDF version] Berkeley Packet Filter Instruction Set Architecture — a digest of the above document and various related developments. libpcap...
PyPI
pypi.org › project › python-libpcap
python-libpcap · PyPI
$ git clone https://github.com/caizhengxin/python-libpcap.git $ cd python-libpcap $ pip3 install -e .
» pip install python-libpcap
CyberITHub
cyberithub.com › how-to-install-libpcap-dev-package-on-ubuntu-20-04-lts-focal
How to Install libpcap-dev package on Ubuntu 20.04 LTS (Focal Fossa) | CyberITHub
September 6, 2023 - Unpacking libpcap-dev:amd64 (1.9.1-3) ... Setting up libpcap0.8-dev:amd64 (1.9.1-3) ... Setting up libpcap-dev:amd64 (1.9.1-3) ... Processing triggers for man-db (2.9.1-1) ... After successful installation, you can verify the installed files path by using dpkg -L libpcap-dev command as shown below.
Stack Exchange
unix.stackexchange.com › questions › 667080 › installing-the-latest-version-of-libpcap-libpcap-dev
debian - Installing the latest version of libpcap & libpcap-dev - Unix & Linux Stack Exchange
August 31, 2021 - In my docker container I run the following command to install the lib pcap: apt-get install -y libpcap-dev When I run apt list --installed I see this weird output: libpcap-dev/oldstable,now 1.8.1-6...
Napatech
docs.napatech.com › r › libpcap-Installation › Installing-and-Running-libpcap-Applications
Installing and Running libpcap Applications
Loading application · Your web browser must have JavaScript enabled in order for this application to display correctly
PyPI
pypi.org › project › libpcap
libpcap · PyPI
We’ve been maintaining binary compatibility between libpcap releases for quite a while; there’s no reason to tie a binary linked with libpcap to a particular release of libpcap. It is a fully independent package. All necessary things are installed during the normal installation process.
» pip install libpcap
O'Reilly
oreilly.com › library › view › security-with-go › 9781788627917 › 25426b58-3063-434a-83c6-f1431c49483b.xhtml
Installing libpcap on Windows - Security with Go [Book]
January 31, 2018 - The developer package, should you ... in C. You should not need the developer package for most cases. Git can be installed from https://git-scm.com/download/win....
Author John Daniel Leon
Published 2018
Pages 340
Silicon Cloud
silicloud.com › home › how to install libpcap on ubuntu
How to Install libpcap on Ubuntu - Blog - Silicon Cloud
August 3, 2025 - Open the terminal and run the following command to install the libpcap-dev package (which includes the libpcap library and development files):
GitHub
github.com › hnkr › pcap-libpcap
GitHub - hnkr/pcap-libpcap: PCAP / libpcap · GitHub
libpcap-dev · install: sudo apt-get install libpcap-dev · check: ldconfig -p | grep pcap · libpcap version 1.8.1 (tested version, under /usr/lib/x86_64-linux-gnu/ ) network tools · install: sudo apt install net-tools · check: ifconfig · ...
Author hnkr
Stack Overflow
stackoverflow.com › questions › 62119525 › install-libpcap
c++ - Install libpcap - Stack Overflow
project(test) set(CMAKE_CXX_STANDARD 14) include_directories(libpcap-1.9.1) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/libpcap-1.9.1/cmake/Modules") find_package(Packet REQUIRED) add_executable(${PROJECT_NAME} main.cpp ) target_link_libraries(${PROJECT_NAME} ${PACKET_LIBRARY})
SANS Institute
sans.org › media › security-training › mpa_install_linux.pdf pdf
Installation for Linux Systems
Then download the following tar packages for Libpcap, Tcpdump and Ethereal to that
Fossies
fossies.org › linux › libpcap › INSTALL.md
libpcap: INSTALL.md | Fossies
June 7, 2021 - The configure script will determine your system attributes and generate an appropriate Makefile from Makefile.in. The configure script has a number of options to control the configuration of libpcap; ./configure --help will show them. Next, run make. If everything goes well, you can su to root and run make install.
MacPorts
ports.macports.org › port › libpcap
Install libpcap on macOS with MacPorts
To install libpcap, run the following command in macOS terminal (Applications->Utilities->Terminal)
Top answer 1 of 2
2
Spelling out Michael's answer:
sudo yum-config-manager --enable rhel-6-server-optional-rpms
sudo yum install libpcap-devel
sudo yum-config-manager --disable rhel-6-server-optional-rpms
Or you can edit /etc/yum.repos.d/redhat.repo:
[rhel-6-server-optional-rpms]
name = Red Hat Enterprise Linux 6 Server - Optional (RPMs)
baseurl = https://cdn.redhat.com/content/dist/rhel/server/6/$releasever/$basearch/optional/os
enabled = 1
2 of 2
1
libpcap-devel is in the RHEL optional channel, which you need to enable on your system.
And if you don't have access to RHEL documentation, you need to talk to whoever is in charge of that in your company to get your Red Hat account authorized for access.