# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 019
- **来源摘要:** List detailed info about USB devices
- **主页:** <http://www.linux-usb.org/>
- **最后更新:** 2026-07-14T20:07:13+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- usbhid-dump (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
