Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper 安装 libnet

查看 libnet 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install libnet

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install libnet

MacPorts ports tree · net/libnet/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add libnet

Alpine Linux edge package indexes · libnet · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install libnet

Fedora Rawhide package metadata · libnet · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#libnet

nixpkgs package indexes · pkgs/by-name/li/libnet/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S libnet

Arch Linux sync databases · libnet · 来源: geo.mirror.pkgbuild.com

Debian apt已验证 · 92%
sudo apt install libnet1

Debian stable package indexes · libnet1 · 来源: deb.debian.org

openSUSE zypper已验证 · 92%
sudo zypper install libnet-devel

openSUSE Tumbleweed package metadata · libnet-devel · 来源: download.opensuse.org

概览

软件包摘要

C library for creating IP packets

命令和别名

  • libnet-config

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

风险级别:绿色

library-like package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • library-like package without higher-risk signals

信号

  • metadata:library-like

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 10 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
libnet-configcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.3
管理器更新时间2026-06-15
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/libnet/libnet

安装元数据

软件包元数据

软件包键brew:libnet
版本1.3
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/libnet
主页https://codedocs.xyz/libnet/libnet/
仓库https://github.com/libnet/libnet
上游文档https://codedocs.xyz/libnet/libnet
许可证BSD-2-Clause
源码归档https://github.com/libnet/libnet/releases/download/v1.3/libnet-1.3.tar.gz
最后更新2026-06-15T10:20:20-04:00
Pulseupdated
构建依赖doxygen
Bottle可用 (于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelibnet
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

libnet1 1.3+dfsg-2

library for the construction and handling of network packets

https://github.com/libnet/libnet/

sudo apt install libnet1
  • Section: libs
  • Architecture: amd64
  • Source Package: libnet
  • 1 依赖
  • normalized package name match
  • 匹配方式:Libnet
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnet1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libnet1-dev 1.3+dfsg-2

development files for libnet

https://github.com/libnet/libnet/

sudo apt install libnet1-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: libnet
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Libnet
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnet1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libnet1-doc 1.3+dfsg-2

developers documentation files for libnet

https://github.com/libnet/libnet/

sudo apt install libnet1-doc
  • Section: doc
  • Architecture: all
  • Source Package: libnet
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Libnet
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnet1-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

libnet

nix profile install nixpkgs#libnet
  • normalized package name match
  • 匹配方式:Libnet
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/li/libnet/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libnet1 1.1.6+dfsg-3.2build1

library for the construction and handling of network packets

http://libnet-dev.sourceforge.net/

sudo apt install libnet1
  • Section: libs
  • Architecture: amd64
  • Source Package: libnet
  • 1 依赖
  • normalized package name match
  • 匹配方式:Libnet
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnet1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libnet1-dbg 1.1.6+dfsg-3.2build1

debugging symbols for libnet

http://libnet-dev.sourceforge.net/

sudo apt install libnet1-dbg
  • Section: libs
  • Architecture: amd64
  • Source Package: libnet
  • 1 依赖
  • normalized package name match
  • 匹配方式:Libnet
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnet1-dbg from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libnet1-dev 1.1.6+dfsg-3.2build1

development files for libnet

http://libnet-dev.sourceforge.net/

sudo apt install libnet1-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: libnet
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Libnet
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnet1-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libnet1-doc 1.1.6+dfsg-3.2build1

developers documentation files for libnet

http://libnet-dev.sourceforge.net/

sudo apt install libnet1-doc
  • Section: doc
  • Architecture: all
  • Source Package: libnet
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Libnet
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnet1-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

libnet 1.3-r0

A generic networking API that provides access to several protocols.

https://sourceforge.net/projects/libnet-dev/

sudo apk add libnet
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: libnet
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Libnet
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libnet from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

libnet-dev 1.3-r0

A generic networking API that provides access to several protocols. (development files)

https://sourceforge.net/projects/libnet-dev/

sudo apk add libnet-dev
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: libnet
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Libnet
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libnet-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

libnet-doc 1.3-r0

A generic networking API that provides access to several protocols. (documentation)

https://sourceforge.net/projects/libnet-dev/

sudo apk add libnet-doc
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: libnet
  • normalized package name match
  • 匹配方式:Libnet
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libnet-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

libnet-static 1.3-r0

A generic networking API that provides access to several protocols. (static library)

https://sourceforge.net/projects/libnet-dev/

sudo apk add libnet-static
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: libnet
  • normalized package name match
  • 匹配方式:Libnet
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libnet-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

libnet 1.3-7.fc44

C library for portable packet creation and injection

https://github.com/libnet/libnet

sudo dnf install libnet
  • License: BSD-2-Clause AND BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: libnet
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Libnet
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libnet from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libnet-devel 1.3-7.fc44

Development files for the libnet library

https://github.com/libnet/libnet

sudo dnf install libnet-devel
  • License: BSD-2-Clause AND BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: libnet
  • 5 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Libnet
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libnet-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libnet-doc 1.3-7.fc44

Documentation files for the libnet library

https://github.com/libnet/libnet

sudo dnf install libnet-doc
  • License: BSD-2-Clause AND BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: libnet
  • 1 提供
  • normalized package name match
  • 匹配方式:Libnet
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libnet-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

libnet 2:1.3-2

A library which provides API for commonly used low-level net functions

https://github.com/libnet/libnet

sudo pacman -S libnet
  • License: BSD-2-Clause
  • Architecture: x86_64
  • 2 依赖
  • normalized package name match
  • 匹配方式:Libnet
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: libnet from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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