# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop, zypper 安装 dfu-util

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

## 安装

```sh
sudo av install brew:dfu-util
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dfu-util
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dfu-util
```

  证据: MacPorts ports tree: cross/dfu-util/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add dfu-util
```

  证据: Alpine Linux edge package indexes: dfu-util from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install dfu-util
```

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

- dnf (92%):

```sh
sudo dnf install dfu-util
```

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

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

- pacman (92%):

```sh
sudo pacman -S dfu-util
```

  证据: Arch Linux sync databases: dfu-util from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install dfu-util
```

  证据: openSUSE Tumbleweed package metadata: dfu-util from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/dfu-util
```

  证据: Scoop official bucket manifest trees: bucket/dfu-util.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:dfu-util
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dfu-util>
- **版本:** 0.11
- **来源摘要:** USB programmer
- **主页:** <https://dfu-util.sourceforge.net/>
- **仓库:** <https://sourceforge.net/p/dfu-util/dfu-util/ci/master/tree>
- **上游文档:** <https://dfu-util.sourceforge.net/>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://downloads.sourceforge.net/project/dfu-util/dfu-util-0.11.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- dfu-prefix (cli)
- dfu-suffix (cli)
- dfu-util (cli)
- dfu-prefix (别名)
- dfu-suffix (别名)
- dfu-util (别名)

## 依赖

- libusb

## 构建依赖

- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.11
- 本地数据: OK
- 上游仓库: https://dfu-util.sourceforge.net/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

dfu-util is the general-purpose host-side command-line utility for USB Device Firmware Upgrade. It downloads firmware to DFU-capable devices, uploads firmware from them, and ships companion tools for DFU suffix and prefix handling.

### 项目历史

The official manual records dfu-util as originally written for the OpenMoko project by Weston Schmidt and Harald Welte, with support added over time for DFU 1.0, DFU 1.1, and ST's DfuSe variant. The project homepage also notes that Harald Welte's original work was partly based on dfu-programmer 0.4 and that the project is maintained by Tormod Volden.

### 采用历史

The official homepage names Openmoko Neo1973 and Freerunner among tested devices, then broadens the list to microcontroller boards, phones, DfuSe devices, STM32 bootloaders, Black Magic Probe, Particle-era hardware, and other embedded targets. It also states that most Linux distributions ship dfu-util and that macOS users can install it through Homebrew or MacPorts.

### 使用方式

The man page documents the core package-manager-visible workflow: list attached DFU devices, select by USB identifiers, interface, path, or serial number, then upload with -U or download with -D. DfuSe usage adds address selection and modifiers such as leave, unprotect, and mass-erase for devices whose DFU behavior extends the base USB specification.

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

dfu-util is a classic tiny-but-critical system package: it is not a framework, but it lets firmware projects document one portable command instead of vendor GUI steps. Its packaging matters because hardware instructions, board recovery guides, and CI-adjacent flashing scripts assume the binary can be installed from the user's normal OS package manager.

### 时间线

- 2012: 0.5 and 0.7 release archives were published on the official release index.
- 2014: 0.8 release archive was published.
- 2016: 0.9 release archive was published.
- 2020: 0.10 release archive and binaries were published.
- 2021: 0.11 release archive and binaries were published.

### Related projects

- dfu-programmer is related historically and functionally, while libusb provides the USB access layer used by dfu-util. ST DfuSe support gives dfu-util a bridge into many STM32-style firmware workflows.

### 来源

- <https://dfu-util.sourceforge.net/>
- <https://dfu-util.sourceforge.net/dfu-util.1.html>
- <https://dfu-util.sourceforge.net/dfuse.html>
- <https://dfu-util.sourceforge.net/releases/>
- <https://sourceforge.net/p/dfu-util/dfu-util/ci/master/tree/README?format=raw>


## 安全说明

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:** dfu-util
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - dfu-util - 0.11-3: normalized package name match | Debian stable package indexes: dfu-util from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Device firmware update (DFU) USB programmer | https://dfu-util.sourceforge.net
- Nix - dfu-util: normalized package name match | nixpkgs package indexes: pkgs/by-name/df/dfu-util/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dfu-util - 0.11-1: normalized package name match | Ubuntu 24.04 LTS package indexes: dfu-util from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Device firmware update (DFU) USB programmer | http://dfu-util.sourceforge.net
- apk - dfu-util - 0.11-r1: normalized package name match | Alpine Linux edge package indexes: dfu-util from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Host side implementation of the DFU 1.0 and DFU 1.1 specifications | https://dfu-util.sourceforge.net/
- apk - dfu-util-doc - 0.11-r1: normalized package name match | Alpine Linux edge package indexes: dfu-util-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Host side implementation of the DFU 1.0 and DFU 1.1 specifications (documentation) | https://dfu-util.sourceforge.net/
- dnf - dfu-util - 0.11-13.fc44: normalized package name match | Fedora Rawhide package metadata: dfu-util from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | USB Device Firmware Upgrade tool | http://dfu-util.sourceforge.net/
- pacman - dfu-util - 0.11-3: normalized package name match | Arch Linux sync databases: dfu-util from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Tool intended to download and upload firmware using DFU protocol to devices connected over USB | http://dfu-util.sourceforge.net/
- zypper - dfu-util - 0.11-2.10: normalized package name match | openSUSE Tumbleweed package metadata: dfu-util from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | DFU firmware upgrade utility | http://dfu-util.sourceforge.net
- MacPorts - dfu-util: normalized package name match | MacPorts ports tree: cross/dfu-util/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/dfu-util: normalized package name match | Scoop official bucket manifest trees: bucket/dfu-util.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Matched curated package taxonomy and local package facts.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [dfu-programmer](https://www.automicvault.com/zh-hans/pkg/brew/dfu-programmer/) - Shares av.db curated category or tags: cli, dfu, embedded, firmware, system.
- [bootloadhid](https://www.automicvault.com/zh-hans/pkg/brew/bootloadhid/) - Shares av.db curated category or tags: cli, embedded, system, usb.
- [acpica](https://www.automicvault.com/zh-hans/pkg/brew/acpica/) - Shares av.db curated category or tags: cli, firmware, system.
- [b43-fwcutter](https://www.automicvault.com/zh-hans/pkg/brew/b43-fwcutter/) - Shares av.db curated category or tags: cli, firmware, system.
- [flashrom](https://www.automicvault.com/zh-hans/pkg/brew/flashrom/) - Shares av.db curated category or tags: cli, firmware, system.
- [flip-link](https://www.automicvault.com/zh-hans/pkg/brew/flip-link/) - Shares av.db curated category or tags: cli, embedded, system.
- [fon-flash-cli](https://www.automicvault.com/zh-hans/pkg/brew/fon-flash-cli/) - Shares av.db curated category or tags: cli, firmware, system.
- [fwup](https://www.automicvault.com/zh-hans/pkg/brew/fwup/) - Shares av.db curated category or tags: cli, firmware, system.
- [rkflashtool](https://www.automicvault.com/zh-hans/pkg/brew/rkflashtool/) - Local package facts share a topical domain. Shared terms: cli, firmware, libusb, system, usb.
- [rpiboot](https://www.automicvault.com/zh-hans/pkg/brew/rpiboot/) - Local package facts share a topical domain. Shared terms: cli, embedded, libusb, system, usb.

## Combined YAML source

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


## 来源

- 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
