# 使用 Homebrew, Nix, scoop 安装 usbtree

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

## 安装

```sh
sudo av install brew:usbtree
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install usbtree
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#usbtree
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/usbtree
```

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

## 软件包事实

- **软件包键:** brew:usbtree
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/usbtree>
- **版本:** 0.1.1
- **来源摘要:** Live USB device tree in your terminal
- **主页:** <https://gnomeria.github.io/usbtree/>
- **仓库:** <https://github.com/gnomeria/usbtree>
- **上游文档:** <https://gnomeria.github.io/usbtree/>
- **许可证:** MIT
- **源码归档:** <https://github.com/gnomeria/usbtree/archive/refs/tags/v0.1.1.tar.gz>
- **最后更新:** 2026-09-13T16:18:32Z
- **已生成:** 2026-10-12T03:48:17+00:00

## 可执行文件

- usbtree (cli)
- usbtree (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-10-12
- 管理器版本: 0.1.1
- 管理器更新时间: 2026-09-13
- 本地数据: OK
- 上游仓库: https://github.com/gnomeria/usbtree
- 检测到的最新版本: v0.1.1 (当前)
## 项目历史与用法

usbtree is a cross-platform terminal UI for inspecting USB device topology, hot-plug events, identity data, and—on Linux—live activity metrics.

### 项目历史

gnomeria created usbtree as a cross-platform Rust terminal application for visualizing USB topology. The project uses nusb for enumeration and release-please plus automated builds for releases.

### 采用历史

usbtree is distributed as a single Rust binary through Homebrew, official shell and PowerShell installers, release archives, and Cargo source installation. Its cross-platform scope offers a common interface where traditional USB inspection tools differ by operating system.

### 使用方式

Run `usbtree` for the interactive tree, `usbtree --dump` for one-shot output, and `usbtree --updatelist` to refresh USB identifiers. Linux additionally supports unprivileged URB-rate metrics and root-enabled usbmon byte-rate measurements.

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

The package combines a polished terminal UI with a small static binary, no libusb dependency, and no routine root requirement. Linux users can optionally elevate it for usbmon bandwidth measurements while retaining unprivileged USB-tree and activity inspection.

### 时间线

- 2026: Early public releases established Homebrew distribution and prebuilt Linux, macOS, and Windows binaries.

### Related projects

- nusb
- usb.ids
- systemd hwdata
- usbmon
- Ratatui

### 来源

- <https://github.com/gnomeria/usbtree>
- <https://gnomeria.github.io/usbtree/>


## 安全说明

没有找到 usbtree 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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: ~/.config/usbtree/overrides.ids, ~/.config/usbtree/usb.ids
- Windows: %APPDATA%\usbtree\overrides.ids, %APPDATA%\usbtree\usb.ids
## 源数据库详情

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

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

- Nix - usbtree: normalized package name match | nixpkgs package indexes: pkgs/by-name/us/usbtree/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/usbtree: normalized package name match | Scoop official bucket manifest trees: bucket/usbtree.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [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.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [oh-my-reddit](https://pkg.so/zh-hans/brew/oh-my-reddit/) - Local package facts share a topical domain. Shared terms: live, terminal, your.
- [aider](https://pkg.so/zh-hans/brew/aider/) - Local package facts share a topical domain. Shared terms: terminal, your.
- [amp](https://pkg.so/zh-hans/brew/amp/) - Local package facts share a topical domain. Shared terms: terminal, your.

## Combined YAML source

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


## 来源

- pkg.so package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
