# 使用 Homebrew, Nix, pacman 安装 elf2uf2-rs

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

## 安装

```sh
sudo av install brew:elf2uf2-rs
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install elf2uf2-rs
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#elf2uf2-rs
```

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

- pacman (92%):

```sh
sudo pacman -S elf2uf2-rs
```

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

## 软件包事实

- **软件包键:** brew:elf2uf2-rs
- **软件包管理器:** Homebrew
- **版本:** 2.2.0
- **来源摘要:** Convert ELF files to UF2 for USB Flashing Bootloaders
- **主页:** <https://github.com/JoNil/elf2uf2-rs>
- **仓库:** <https://github.com/JoNil/elf2uf2-rs>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- elf2uf2-rs (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

elf2uf2-rs is a Rust CLI for converting ELF firmware binaries to UF2 and deploying them to supported microcontroller boards.

### 项目历史

The official README describes elf2uf2-rs as a tool for converting ELF binaries into UF2 format and flashing them to microcontrollers including RP2040 and RP2350 boards. It credits Raspberry Pi's elf2uf2 as the basis.

docs.rs describes the crate as a Rust port of elf2uf2 and shows that it is published as a command-line package rather than a library.

### 采用历史

The docs.rs release history shows a 1.0.0 release in 2021, continued 1.x releases through 2023, a 2.0.0 release in 2024, and 2.2.0 in 2025. The input metadata shows Homebrew, Nix, and pacman packaging.

### 使用方式

Users run elf2uf2-rs to convert firmware to UF2 files or deploy ELF output directly to a connected board. The README also documents adding a runner command to .cargo/config.toml so cargo run can flash a microcontroller.

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

elf2uf2-rs is a package-manager-friendly bridge between embedded Rust builds and board flashing: a single CLI turns Cargo output into a deployable UF2 workflow without requiring users to build Raspberry Pi SDK tools separately.

### 时间线

- 2021-01-29: docs.rs lists 1.0.0 and 1.1.0 releases.
- 2024-01-07: docs.rs lists 2.0.0.
- 2025-10-06: docs.rs lists 2.2.0.
- 2026 batch: Input metadata shows Homebrew, Nix, and pacman packages.

### Related projects

- Raspberry Pi's elf2uf2 is credited by the official README as the basis for elf2uf2-rs.
- Cargo is part of the documented install and project-runner workflow.

### 来源

- <https://docs.rs/crate/elf2uf2-rs/latest>
- <https://github.com/JoNil/elf2uf2-rs>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .cargo/config.toml
## 其他软件包管理器记录

- Nix - elf2uf2-rs: normalized package name match | nixpkgs package indexes: pkgs/by-name/el/elf2uf2-rs/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - elf2uf2-rs - 2.2.0-2: normalized package name match | Arch Linux sync databases: elf2uf2-rs from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Convert ELF files to UF2 for USB Flashing Bootloaders | https://github.com/JoNil/elf2uf2-rs


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
