# 使用 Homebrew, apt, dnf, Nix 安装 dhcpdump

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

## 安装

```sh
sudo av install brew:dhcpdump
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dhcpdump
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install dhcpdump
```

  证据: Debian stable package indexes: dhcpdump from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install dhcpdump
```

  证据: Fedora Rawhide package metadata: dhcpdump 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#dhcpdump
```

  证据: nixpkgs package indexes: pkgs/by-name/dh/dhcpdump/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:dhcpdump
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dhcpdump>
- **版本:** 2.00
- **来源摘要:** Monitor DHCP traffic for debugging purposes
- **主页:** <https://github.com/dhcpdump-org/dhcpdump>
- **仓库:** <https://github.com/dhcpdump-org/dhcpdump>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://github.com/dhcpdump-org/dhcpdump/releases/download/v2.00/dhcpdump-2.00.tar.xz>
- **最后更新:** 2026-08-02T08:56:46Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dhcpdump (cli)
- dhcpdump (别名)

## macOS 提供的库

- libpcap

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.00
- 管理器更新时间: 2026-08-02
- 本地数据: OK
- 上游仓库: https://github.com/dhcpdump-org/dhcpdump
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

dhcpdump is a small DHCP packet inspection utility: it decodes captured DHCP traffic into output that is easier to read than raw packet dumps. It occupies the classic Unix niche of a narrow diagnostic command built for administrators debugging a specific protocol.

### 项目历史

The original Mavetju page lists DHCPDUMP 1.8 as a utility to analyze sniffed DHCP packets, and its change log records incremental releases through 1.8. The current official fork describes itself as a fork of dhcpdump 1.8 by Edwin Groothuis that collects bug fixes and improvements accumulated over more than a decade.

### 采用历史

dhcpdump stayed relevant because DHCP troubleshooting often needs a readable decode of broadcasts, options, client identifiers, relay-agent data, and pcap captures. The maintained fork adds modern fixes such as VLAN-tagged traffic support, pcap-file reading, and updated option parsing.

### 使用方式

The original manual documents use on a network interface, optional client-hardware-address filtering, and verbose decoded output of DHCP headers and options. Later releases moved from parsing tcpdump output to using pcap directly.

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

For package maintainers, dhcpdump is the sort of tiny network utility that survives because it is easier to package and invoke than a full packet-analysis suite. Its value is not breadth, but the convenience of purpose-built DHCP decoding in scripts, support sessions, and server rooms.

### 时间线

- 2002: Original man page revision identifies dhcpdump as a DHCP packet dumper.
- 2004: Version 1.8 changes dhcpdump to use pcap instead of tcpdump output.
- 2023: Current GitHub fork is created to collect long-running fixes and improvements.

### Related projects

- dhcping is another Mavetju DHCP diagnostic tool.
- tcpdump and libpcap are adjacent packet-capture tools used around dhcpdump workflows.

### 来源

- <http://www.mavetju.org/unix/general.php>
- <http://www.mavetju.org/unix/dhcpdump-man.php>
- <http://www.mavetju.org/unix/dhcpdump-changes.txt>
- <https://github.com/dhcpdump-org/dhcpdump>
- <https://api.github.com/repos/bbonev/dhcpdump>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

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

## 其他软件包管理器记录

- Debian apt - dhcpdump - 1.9-1+b1: normalized package name match | Debian stable package indexes: dhcpdump from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Parse DHCP packets from a network interface | https://github.com/bbonev/dhcpdump
- Nix - dhcpdump: normalized package name match | nixpkgs package indexes: pkgs/by-name/dh/dhcpdump/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dhcpdump - 1.9-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: dhcpdump from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Parse DHCP packets from a network interface | https://github.com/bbonev/dhcpdump
- dnf - dhcpdump - 2.00-1.fc45: normalized package name match | Fedora Rawhide package metadata: dhcpdump from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Parse DHCP packets | https://github.com/bbonev/dhcpdump


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [dhcping](https://pkg.so/zh-hans/brew/dhcping/) - Shares pkgdb curated category or tags: cli, dhcp, diagnostics, networking.
- [mtr](https://pkg.so/zh-hans/brew/mtr/) - Shares pkgdb curated category or tags: cli, diagnostics, networking.
- [tcpdump](https://pkg.so/zh-hans/brew/tcpdump/) - Shares pkgdb curated category or tags: cli, networking, packet-analysis, pcap.
- [arping](https://pkg.so/zh-hans/brew/arping/) - Shares pkgdb curated category or tags: cli, diagnostics, networking.
- [nexttrace](https://pkg.so/zh-hans/brew/nexttrace/) - Shares pkgdb curated category or tags: cli, diagnostics, networking.
- [lft](https://pkg.so/zh-hans/brew/lft/) - Shares pkgdb curated category or tags: cli, diagnostics, networking.
- [scamper](https://pkg.so/zh-hans/brew/scamper/) - Shares pkgdb curated category or tags: cli, diagnostics, networking.
- [dstp](https://pkg.so/zh-hans/brew/dstp/) - Shares pkgdb curated category or tags: cli, diagnostics, networking.
- [miruo](https://pkg.so/zh-hans/brew/miruo/) - Local metadata places this package in an adjacent workflow. Shared terms: analysis, cli, monitor, network, networking.
- [httpflow](https://pkg.so/zh-hans/brew/httpflow/) - Local package facts share a topical domain. Shared terms: analysis, cli, networking, packet, pcap.
- [sniffer](https://pkg.so/zh-hans/brew/sniffer/) - Local metadata places this package in an adjacent workflow. Shared terms: analysis, cli, network, networking, packet.

## Combined YAML source

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


## 来源

- 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
