# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 usbutils

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

## 安装

```sh
sudo av install brew:usbutils
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install usbutils
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install usbutils
```

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

### Linux

- apk (92%):

```sh
sudo apk add usbutils
```

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

- Debian apt (92%):

```sh
sudo apt install usbutils
```

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

- dnf (92%):

```sh
sudo dnf install usbutils
```

  证据: Fedora Rawhide package metadata: usbutils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#usbutils
```

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

- pacman (92%):

```sh
sudo pacman -S usbutils
```

  证据: Arch Linux sync databases: usbutils from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install usbutils
```

  证据: openSUSE Tumbleweed package metadata: usbutils from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:usbutils
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/usbutils>
- **版本:** 019
- **来源摘要:** List detailed info about USB devices
- **主页:** <http://www.linux-usb.org/>
- **上游文档:** <http://www.linux-usb.org/>
- **许可证:** GPL-2.0-only AND GPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only)
- **源码归档:** <https://mirrors.edge.kernel.org/pub/linux/utils/usb/usbutils/usbutils-019.tar.gz>
- **最后更新:** 2026-07-14T20:07:13+09:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- usbhid-dump (cli)
- usbhid-dump (别名)

## 依赖

- libusb

## 构建依赖

- meson
- ninja
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- 注意事项: usbhid-dump requires either proper code signing with com.apple.vm.device-access entitlement or root privilege
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 019
- 管理器更新时间: 2026-07-14
- 本地数据: OK
- 上游仓库: http://www.linux-usb.org/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

usbutils is the Linux and BSD user-space toolkit for inspecting USB devices attached to a host. Its README describes it as a collection of USB tools used to query what kind of USB devices are connected to a system, with the important distinction that it runs on USB hosts, not USB devices.

### 项目历史

The official kernel.org Git history begins on 2004-02-20 with an initial revision, followed by early 2004 changes around lsusb behavior, USB IDs, and descriptor reporting. That places usbutils in the long-running Linux USB user-space tooling lineage rather than in the newer single-purpose CLI wave.

The package has remained small but central: the tree contains `lsusb`, `usb-devices`, `usbreset`, USB descriptor tables, and usbhid-dump integration. The README records libusb and libudev as build dependencies and lists kernel.org as the maintainer-preferred source location, with mirrors at SourceHut and GitHub.

The old-style NEWS file is maintained for people without access to Git history, which is a very package-oriented signal: distro users and packagers can still see release changes even when they are building from a source tarball instead of browsing the repository.

### 采用历史

The input package metadata lists usbutils across Alpine, Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Ubuntu, and openSUSE package families. That breadth follows naturally from its role as the standard user-space package behind `lsusb` and related USB inspection tools.

usbutils is usually adopted indirectly by administrators, developers, and hardware debuggers: it is installed when someone needs to identify USB vendors/products, inspect descriptors, reset devices, or troubleshoot how the kernel sees attached USB hardware.

### 使用方式

The core workflow is host inspection: run the tools on a machine with USB devices attached, list devices, inspect descriptors, dump HID information, or reset a device. The README emphasizes that the tools are for host-side querying and require libusb and libudev to build.

In package-manager culture, usbutils is often one of the first packages installed inside containers, rescue systems, minimal Linux images, or macOS/Linux developer workstations when hardware discovery is needed.

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

usbutils is significant because it turns kernel USB state into command-line facts. Packagers care about it as a small, stable diagnostic bundle with a recognizable executable surface and a dependency relationship to libusb, udev, hardware ID data, and distribution packaging policies.

### 时间线

- 2004-02-20: Official Git history begins with an initial revision.
- 2009-04-26: Official tag v0.80 created.
- 2018-2025: NEWS file maintained for packaged versions without Git history.
- 2024-10-22: Official tag v018 created.
- 2025-10-22: Official tag v019 created.

### Related projects

- The official README names libusb and libudev as dependencies, and the contribution section points to the linux-usb mailing list.

### 来源

- <https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/plain/NEWS>
- <https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/plain/README.md>
- input source_facts.package-manager
- official git log and tags from https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git


## 安全说明

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:** usbutils
- **Version Scheme:** 0
- **Revision:** 0
- **Conflicts With:** lsusb, lsusb-laniksj
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - usbutils - 1:018-2: normalized package name match | Debian stable package indexes: usbutils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Linux USB utilities | https://github.com/gregkh/usbutils
- Debian apt - usbutils-py - 1:018-2: normalized package name match | Debian stable package indexes: usbutils-py from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Linux USB utilities - lsusb.py command | https://github.com/gregkh/usbutils
- Nix - usbutils: normalized package name match | nixpkgs package indexes: pkgs/by-name/us/usbutils/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - usbutils - 1:017-3build1: normalized package name match | Ubuntu 24.04 LTS package indexes: usbutils from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Linux USB utilities | https://github.com/gregkh/usbutils
- Ubuntu apt - usbutils-py - 1:017-3build1: normalized package name match | Ubuntu 24.04 LTS package indexes: usbutils-py from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Linux USB utilities - lsusb.py command | https://github.com/gregkh/usbutils
- apk - usbutils - 019-r0: normalized package name match | Alpine Linux edge package indexes: usbutils from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | USB Device Utilities | https://linux-usb.sourceforge.net/
- apk - usbutils-doc - 019-r0: normalized package name match | Alpine Linux edge package indexes: usbutils-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | USB Device Utilities (documentation) | https://linux-usb.sourceforge.net/
- dnf - usbutils - 019-3.fc45: normalized package name match | Fedora Rawhide package metadata: usbutils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Linux USB utilities | http://www.linux-usb.org/
- pacman - usbutils - 019-1: normalized package name match | Arch Linux sync databases: usbutils from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz | A collection of USB tools to query connected USB devices | https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/
- zypper - usbutils - 019-1.6: normalized package name match | openSUSE Tumbleweed package metadata: usbutils from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tools and libraries for USB devices | https://sourceforge.net/projects/linux-usb/
- MacPorts - usbutils: normalized package name match | MacPorts ports tree: sysutils/usbutils/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [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.
- [Web development packages](https://pkg.so/zh-hans/web-dev-tools/) - Matched web development metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [ninja](https://pkg.so/zh-hans/brew/ninja/) - Build dependency declared by Homebrew.
- [meson](https://pkg.so/zh-hans/brew/meson/) - Build dependency declared by Homebrew.
- [cyme](https://pkg.so/zh-hans/brew/cyme/) - Shares pkgdb curated category or tags: cli, hardware, lsusb, system, usb.
- [sispmctl](https://pkg.so/zh-hans/brew/sispmctl/) - Shares pkgdb curated category or tags: cli, hardware, linux, system, usb.
- [lsusb](https://pkg.so/zh-hans/brew/lsusb/) - Shares pkgdb curated category or tags: cli, hardware, system, usb.
- [uhubctl](https://pkg.so/zh-hans/brew/uhubctl/) - Shares pkgdb curated category or tags: cli, hardware, system, usb.
- [ddcutil](https://pkg.so/zh-hans/brew/ddcutil/) - Shares pkgdb curated category or tags: cli, linux, system, usb.
- [rkflashtool](https://pkg.so/zh-hans/brew/rkflashtool/) - Shares pkgdb curated category or tags: cli, hardware, system, usb.
- [blink1](https://pkg.so/zh-hans/brew/blink1/) - Shares pkgdb curated category or tags: cli, hardware, system, usb.
- [dcled](https://pkg.so/zh-hans/brew/dcled/) - Shares pkgdb curated category or tags: cli, linux, system, usb.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
