# Install libdnet with Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper

Portable low-level networking library. Version 1.18.2 via Homebrew; verified 2026-06-28.

## Install

```sh
sudo av install brew:libdnet
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libdnet
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libdnet
```

  Evidence: MacPorts ports tree: net/libdnet/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libdnet
```

  Evidence: Alpine Linux edge package indexes: libdnet from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install libdnet
```

  Evidence: Fedora Rawhide package metadata: libdnet from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libdnet
```

  Evidence: nixpkgs package indexes: pkgs/by-name/li/libdnet/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S libdnet
```

  Evidence: Arch Linux sync databases: libdnet from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libdnet-devel
```

  Evidence: openSUSE Tumbleweed package metadata: libdnet-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:libdnet
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libdnet>
- **Version:** 1.18.2
- **Source summary:** Portable low-level networking library
- **Homepage:** <https://github.com/ofalk/libdnet>
- **Repository:** <https://github.com/ofalk/libdnet>
- **Upstream docs:** <https://github.com/ofalk/libdnet#readme>
- **License:** BSD-3-Clause
- **Source archive:** <https://github.com/ofalk/libdnet/archive/refs/tags/libdnet-1.18.2.tar.gz>
- **Last updated:** 2026-06-28T00:07:30-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- dnet (cli)
- dnet-config (cli)
- dnet (alias)
- dnet-config (alias)

## Build dependencies

- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.18.2
- Package-manager updated: 2026-06-28
- Local data: ok
- Upstream repository: https://github.com/ofalk/libdnet
- Upstream latest detected: libdnet-1.18.2 (current)
## Project history and usage

libdnet is a portable low-level networking library that wraps address manipulation, ARP and route-table access, firewalling, interface handling, tunneling, and raw packet transmission behind one API.

### Project history

The original libdnet site is signed by Dug Song and presents the project as a small systems library for C, C++, Python, Perl, and Ruby users across BSD, Linux, Mac OS X, Windows, Solaris, IRIX, HP-UX, and Tru64. Its SourceForge-era download section listed libdnet 1.11 in January 2005 and CVS as the source-control mechanism.

The GitHub tag history preserves the older imported lineage, including DNET_1_10 in February 2005 and libdnet-1.12 in January 2007, then shows renewed maintenance under the ofalk repository with releases from 2020 onward. The 2023-2024 releases focused on modern build tooling, CMake/autotools cleanup, Python binding rebuilds, CI, and portability fixes.

### Adoption history

The official libdnet site listed projects using it such as arpd, firewalk, fragroute, honeyd, Nmap, Scapy, Unicornscan, and other network-testing or packet-manipulation tools. That placement made libdnet part of the classic Unix security-tool stack, often paired conceptually with libpcap for capture and libnet-style packet construction.

### How it is used

Developers use libdnet when they need portable access to network interfaces, routes, ARP tables, filters, tunnels, or raw Ethernet/IP transmission without writing per-OS code. The package also ships `dnet` and `dnet-config`, making it useful both as a development library and as an installed build dependency for older networking tools.

### Why package nerds care

libdnet is a package-nerd fossil with real utility: it carries early-2000s network-security tooling assumptions into modern distributions. Packaging it well keeps old but still-useful packet tools buildable, especially where source has moved from SourceForge/CVS through Google Code-era references into maintained GitHub forks.

### Timeline

- 2005: libdnet 1.11 listed on the official site.
- 2005: DNET_1_10 tag imported into the GitHub history.
- 2007: libdnet-1.12 tag published.
- 2020: libdnet-1.14 tag published in the maintained GitHub repository.
- 2023: 1.16.x and 1.17.0 releases modernized build support.
- 2024: 1.18.0 and 1.18.2 releases continued portability and tooling fixes.

### Related projects

- The official site names libpcap, WinPcap, pypcap, dpkt, libnet, PktFilter, and TUN/TAP drivers as related work, and lists Nmap, Scapy, honeyd, fragroute, arpd, and Unicornscan among downstream users.

### Sources

- <https://github.com/ofalk/libdnet>
- <https://github.com/ofalk/libdnet/releases>
- <https://github.com/ofalk/libdnet/tags>
- <https://libdnet.sourceforge.net/>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libdnet
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - libdnet: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libdnet/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - libdnet - 1.18.0-r0: normalized package name match | Alpine Linux edge package indexes: libdnet from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | simplified, portable interface to several low-level networking routines | https://github.com/ofalk/libdnet
- apk - libdnet-dev - 1.18.0-r0: normalized package name match | Alpine Linux edge package indexes: libdnet-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | simplified, portable interface to several low-level networking routines (development files) | https://github.com/ofalk/libdnet
- apk - libdnet-doc - 1.18.0-r0: normalized package name match | Alpine Linux edge package indexes: libdnet-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | simplified, portable interface to several low-level networking routines (documentation) | https://github.com/ofalk/libdnet
- dnf - libdnet - 1.18.0-10.fc45: normalized package name match | Fedora Rawhide package metadata: libdnet from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Simple portable interface to lowlevel networking routines | https://github.com/ofalk/libdnet
- dnf - libdnet-devel - 1.18.0-10.fc45: normalized package name match | Fedora Rawhide package metadata: libdnet-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Header files for libdnet library | https://github.com/ofalk/libdnet
- dnf - libdnet-progs - 1.18.0-10.fc45: normalized package name match | Fedora Rawhide package metadata: libdnet-progs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Sample applications to use with libdnet | https://github.com/ofalk/libdnet
- dnf - python3-libdnet - 1.18.0-10.fc45: normalized package name match | Fedora Rawhide package metadata: python3-libdnet from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Python bindings for libdnet | https://github.com/ofalk/libdnet
- pacman - libdnet - 1.18.2-1: normalized package name match | Arch Linux sync databases: libdnet from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A simplified, portable interface to several low-level networking routines | https://github.com/ofalk/libdnet
- zypper - libdnet-devel - 1.18.2-1.2: normalized package name match | openSUSE Tumbleweed package metadata: libdnet-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for libdnet | https://github.com/dugsong/libdnet
- zypper - libdnet1 - 1.18.2-1.2: normalized package name match | openSUSE Tumbleweed package metadata: libdnet1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Library for Portable Interface to Low-Level Networking Routines | https://github.com/dugsong/libdnet
- MacPorts - libdnet: normalized package name match | MacPorts ports tree: net/libdnet/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [daemonlogger](https://www.automicvault.com/pkg/brew/daemonlogger/) - Popular package that depends on this formula.
- [fragroute](https://www.automicvault.com/pkg/brew/fragroute/) - Popular package that depends on this formula.
- [net-tools](https://www.automicvault.com/pkg/brew/net-tools/) - Popular package that depends on this formula.
- [snort](https://www.automicvault.com/pkg/brew/snort/) - Popular package that depends on this formula.
- [tcpreplay](https://www.automicvault.com/pkg/brew/tcpreplay/) - Popular package that depends on this formula.
- [zmap](https://www.automicvault.com/pkg/brew/zmap/) - Popular package that depends on this formula.
- [gensio](https://www.automicvault.com/pkg/brew/gensio/) - Shares av.db curated category or tags: c-library, cli, networking.
- [gsasl](https://www.automicvault.com/pkg/brew/gsasl/) - Shares av.db curated category or tags: c-library, cli, networking.
- [ldns](https://www.automicvault.com/pkg/brew/ldns/) - Shares av.db curated category or tags: c-library, cli, networking.
- [libnl](https://www.automicvault.com/pkg/brew/libnl/) - Shares av.db curated category or tags: c-library, cli, networking.
- [libpcap](https://www.automicvault.com/pkg/brew/libpcap/) - Shares av.db curated category or tags: c-library, cli, networking.
- [ndpi](https://www.automicvault.com/pkg/brew/ndpi/) - Shares av.db curated category or tags: c-library, cli, networking.
- [nghttp2](https://www.automicvault.com/pkg/brew/nghttp2/) - Shares av.db curated category or tags: c-library, cli, networking.
- [xbee-comm](https://www.automicvault.com/pkg/brew/xbee-comm/) - Shares av.db curated category or tags: cli, libraries, networking.

## Combined YAML source

View the package source record on GitHub. [combined/libdnet.yml](https://github.com/automic-vault/db/blob/main/combined/libdnet.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
