# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop 安装 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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
- **版本:** 0.11
- **来源摘要:** USB programmer
- **主页:** <https://dfu-util.sourceforge.net/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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-14.fc45: 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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.12: normalized package name match | openSUSE Tumbleweed package metadata: dfu-util from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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


## Combined YAML source

View the package source record on GitHub. [combined/dfu-util.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dfu-util.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
