# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 2.00
- **来源摘要:** Monitor DHCP traffic for debugging purposes
- **主页:** <https://github.com/dhcpdump-org/dhcpdump>
- **仓库:** <https://github.com/dhcpdump-org/dhcpdump>
- **最后更新:** 2026-08-02T08:56:46Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dhcpdump (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.00
## 项目历史与用法

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Parse DHCP packets | https://github.com/bbonev/dhcpdump


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
