# Installer libnet avec Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de libnet pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:libnet
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install libnet
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libnet
```

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

### Linux

- apk (92%):

```sh
sudo apk add libnet
```

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

- dnf (92%):

```sh
sudo dnf install libnet
```

  Preuve: Fedora Rawhide package metadata: libnet from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libnet
```

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

- pacman (92%):

```sh
sudo pacman -S libnet
```

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

- Debian apt (92%):

```sh
sudo apt install libnet1
```

  Preuve: Debian stable package indexes: libnet1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install libnet-devel
```

  Preuve: openSUSE Tumbleweed package metadata: libnet-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Faits du paquet

- **Clé du paquet:** brew:libnet
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/libnet>
- **Version:** 1.3
- **Résumé source:** C library for creating IP packets
- **Page d'accueil:** <https://codedocs.xyz/libnet/libnet/>
- **Dépôt:** <https://github.com/libnet/libnet>
- **Docs amont:** <https://codedocs.xyz/libnet/libnet/>
- **Licence:** BSD-2-Clause
- **Archive source:** <https://github.com/libnet/libnet/releases/download/v1.3/libnet-1.3.tar.gz>
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- libnet-config (cli)
- libnet-config (alias)

## Dépendances de compilation

- doxygen

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 1.3
- données locales: OK
- dépôt amont: https://github.com/libnet/libnet
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Historique du projet et usages

libnet is a C library for constructing and injecting network packets. It occupies the low-level packet-building side of the classic libpcap/libnet pairing: libpcap captures packets, while libnet gives test tools, scanners, and protocol experiments a portable API for emitting packets with controlled headers.

### Historique du projet

The project traces its 1.1 line to Mike D. Schiffman's Packetfactory-era work, with project materials crediting libnet 1.1 to 1998-2004. The maintained 1.1.3-and-later line was revived by Sam Roberts starting in 2009 after the older Packetfactory-hosted code had become unmaintained.

The 1.1 API was a significant break from 1.0.x code. The migration guide describes the change as a simplification from a five-step packet workflow to initialization, packet building, and packet writing, and the README warns that libnet 1.0.x code is incompatible with libnet 1.1.x and later.

### Historique d'adoption

libnet spread through security and networking tools because it hides byte ordering, buffer management, and link/IP layer packet assembly details while still allowing deliberate packet shaping. The official README names packaged tools such as arping, ettercap, nemesis, packit, tcptraceroute, and yersinia as libnet users.

### Modes d'utilisation

Developers include libnet through libnet.h and link with -lnet. The project retained libnet-config for compatibility but moved new integration guidance toward pkg-config, with libnet.pc replacing the older helper in modern builds.

### Pourquoi les passionnés de paquets s'y intéressent

For package maintainers, libnet is notable because it is tiny in concept but sits on privileged and platform-specific network interfaces. Its ABI break between 1.0.x and 1.1.x, the revival from an abandoned upstream, and the long-lived libnet-config compatibility shim are exactly the sort of details that explain why distributions keep careful split packages and rebuild notes for it.

### Chronologie

- 1998-2004: libnet 1.1 materials credit Mike D. Schiffman for the Packetfactory-era implementation.
- 2009: Sam Roberts began maintaining the 1.1.3-and-later line after the older upstream had gone quiet.
- 2012: libnet 1.1.6 appeared in the SourceForge-hosted release area.
- 2023: GitHub listed libnet v1.3 as a release dated October 2, 2023.

### Related projects

- libpcap is the natural companion library for capture-side workflows.
- Packet-generation and network-security tools named by the project include arping, ettercap, nemesis, packit, tcptraceroute, and yersinia.

### Sources

- <https://github.com/libnet/libnet>
- <https://github.com/libnet/libnet/blob/master/doc/MIGRATION.md>
- <https://sourceforge.net/projects/libnet-dev/files/>


## Notes de sécurité

library-like package without higher-risk signals.

- **Risque Geiger:** vert / faible
- library-like package without higher-risk signals

## Détails de la base source

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libnet
- **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

## Autres enregistrements de gestionnaires de paquets

- Debian apt - libnet1 - 1.3+dfsg-2: normalized package name match | Debian stable package indexes: libnet1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for the construction and handling of network packets | https://github.com/libnet/libnet/
- Debian apt - libnet1-dev - 1.3+dfsg-2: normalized package name match | Debian stable package indexes: libnet1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for libnet | https://github.com/libnet/libnet/
- Debian apt - libnet1-doc - 1.3+dfsg-2: normalized package name match | Debian stable package indexes: libnet1-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | developers documentation files for libnet | https://github.com/libnet/libnet/
- Nix - libnet: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libnet/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libnet1 - 1.1.6+dfsg-3.2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libnet1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for the construction and handling of network packets | http://libnet-dev.sourceforge.net/
- Ubuntu apt - libnet1-dbg - 1.1.6+dfsg-3.2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libnet1-dbg from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | debugging symbols for libnet | http://libnet-dev.sourceforge.net/
- Ubuntu apt - libnet1-dev - 1.1.6+dfsg-3.2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libnet1-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | development files for libnet | http://libnet-dev.sourceforge.net/
- Ubuntu apt - libnet1-doc - 1.1.6+dfsg-3.2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libnet1-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | developers documentation files for libnet | http://libnet-dev.sourceforge.net/
- apk - libnet - 1.3-r0: normalized package name match | Alpine Linux edge package indexes: libnet from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A generic networking API that provides access to several protocols. | https://sourceforge.net/projects/libnet-dev/
- apk - libnet-dev - 1.3-r0: normalized package name match | Alpine Linux edge package indexes: libnet-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A generic networking API that provides access to several protocols. (development files) | https://sourceforge.net/projects/libnet-dev/
- apk - libnet-doc - 1.3-r0: normalized package name match | Alpine Linux edge package indexes: libnet-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A generic networking API that provides access to several protocols. (documentation) | https://sourceforge.net/projects/libnet-dev/
- apk - libnet-static - 1.3-r0: normalized package name match | Alpine Linux edge package indexes: libnet-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A generic networking API that provides access to several protocols. (static library) | https://sourceforge.net/projects/libnet-dev/
- dnf - libnet - 1.3-8.fc45: normalized package name match | Fedora Rawhide package metadata: libnet from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | C library for portable packet creation and injection | https://github.com/libnet/libnet
- dnf - libnet-devel - 1.3-8.fc45: normalized package name match | Fedora Rawhide package metadata: libnet-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for the libnet library | https://github.com/libnet/libnet
- dnf - libnet-doc - 1.3-8.fc45: normalized package name match | Fedora Rawhide package metadata: libnet-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Documentation files for the libnet library | https://github.com/libnet/libnet
- pacman - libnet - 2:1.3-2: normalized package name match | Arch Linux sync databases: libnet from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A library which provides API for commonly used low-level net functions | https://github.com/libnet/libnet


## Liens liés

- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/fr/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/fr/brew-utility-packages/) - Matched Homebrew package provider.
- [doxygen](https://pkg.so/fr/brew/doxygen/) - Build dependency declared by Homebrew.
- [arping](https://pkg.so/fr/brew/arping/) - Popular package that depends on this formula.
- [tcptraceroute](https://pkg.so/fr/brew/tcptraceroute/) - Popular package that depends on this formula.
- [syslog-ng](https://pkg.so/fr/brew/syslog-ng/) - Popular package that depends on this formula.
- [ettercap](https://pkg.so/fr/brew/ettercap/) - Popular package that depends on this formula.
- [suricata](https://pkg.so/fr/brew/suricata/) - Popular package that depends on this formula.
- [ssldump](https://pkg.so/fr/brew/ssldump/) - Popular package that depends on this formula.
- [udp2raw-multiplatform](https://pkg.so/fr/brew/udp2raw-multiplatform/) - Popular package that depends on this formula.
- [c-ares](https://pkg.so/fr/brew/c-ares/) - Shares pkgdb curated category or tags: c, cli, library, networking.
- [czmq](https://pkg.so/fr/brew/czmq/) - Shares pkgdb curated category or tags: c, cli, library, networking.
- [xmlrpc-c](https://pkg.so/fr/brew/xmlrpc-c/) - Shares pkgdb curated category or tags: c, cli, library, networking.
- [libproxy](https://pkg.so/fr/brew/libproxy/) - Shares pkgdb curated category or tags: cli, library, networking.
- [liblo](https://pkg.so/fr/brew/liblo/) - Shares pkgdb curated category or tags: c, cli, library, networking.
- [proxygen](https://pkg.so/fr/brew/proxygen/) - Shares pkgdb curated category or tags: cli, library, networking.
- [sofia-sip](https://pkg.so/fr/brew/sofia-sip/) - Shares pkgdb curated category or tags: c, cli, library, networking.
- [gupnp](https://pkg.so/fr/brew/gupnp/) - Shares pkgdb curated category or tags: cli, library, networking.
- [libdnet](https://pkg.so/fr/brew/libdnet/) - Local package facts share a topical domain. Shared terms: cli, config, networking, packet.

## Combined YAML source

View the package source record on GitHub. [combined/libnet.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libnet.yml)


## Sources

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