# 使用 Homebrew, apk, MacPorts, pacman, zypper 安装 libusb-compat

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

## 安装

```sh
sudo av install brew:libusb-compat
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libusb-compat
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libusb-compat
```

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

### Linux

- apk (92%):

```sh
sudo apk add libusb-compat
```

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

- pacman (92%):

```sh
sudo pacman -S libusb-compat
```

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

- zypper (92%):

```sh
sudo zypper install libusb-0_1-4
```

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

## 软件包事实

- **软件包键:** brew:libusb-compat
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libusb-compat>
- **版本:** 0.1.9
- **来源摘要:** Library for USB device access
- **主页:** <https://libusb.info/>
- **上游文档:** <https://libusb.info/>
- **许可证:** LGPL-2.1-or-later AND (LGPL-2.1-or-later OR BSD-3-Clause)
- **源码归档:** <https://downloads.sourceforge.net/project/libusb/libusb-compat-0.1/libusb-compat-0.1.9/libusb-compat-0.1.9.tar.bz2>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- libusb-config (cli)
- libusb-config (别名)

## 依赖

- libusb

## 构建依赖

- autoconf
- automake
- libtool
- pkgconf

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.1.9
- 本地数据: OK
- 上游仓库: https://libusb.info/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

libusb-compat is the libusb project's compatibility layer for software written against the old libusb-0.1 API while systems moved to the newer libusb-1.0 stack.

### 项目历史

The project appeared during the libusb-1.0 transition as a deliberately conservative bridge: keep legacy usb_* callers building and running while letting distributions ship the newer libusb implementation underneath. Its release notes show an initial beta in May 2008, a 0.1.0 release in December 2008, and later fixes focused on endpoint-addressing compatibility, initialization behavior, cross-compiling, and avoiding symbol clashes with libusb-1.0.

### 采用历史

The package became useful to Unix package maintainers because many older USB tools and libraries expected libusb-0.1 headers or libusb-config even after libusb-1.0 had become the maintained API. Keeping it packaged let distributions retire older implementation details without forcing every leaf package to port at once.

### 使用方式

End users rarely call libusb-compat directly. It is normally pulled in as a build or runtime dependency for older USB-aware software, with libusb-config serving legacy configure scripts.

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

It is a classic transition package: small, boring, and important because it absorbs API churn between a widely used hardware-access library and a long tail of older consumers.

### 时间线

- 2008-05-25: Initial 0.1.0 beta release.
- 2008-12-13: libusb-compat-0.1.0 release.
- 2009: 0.1.1 through 0.1.3 refined endpoint behavior, initialization failure handling, error-code compatibility, and cross-compiling.
- 2015: 0.1.6 added cleanup handling, libusb-1.0 dlopen handling, and MinGW updates.

### Related projects

- libusb-1.0 is the implementation layer that libusb-compat targets.
- libusb-0.1 is the legacy API surface preserved for old consumers.

### 来源

- <https://github.com/libusb/libusb-compat-0.1>
- <https://libusb.info/>
- <https://raw.githubusercontent.com/libusb/libusb-compat-0.1/master/NEWS>


## 安全说明

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


## 源数据库详情

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

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

- apk - libusb-compat - 0.1.9-r0: normalized package name match | Alpine Linux edge package indexes: libusb-compat from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Compatility for older libusb | https://libusb.info/
- apk - libusb-compat-dev - 0.1.9-r0: normalized package name match | Alpine Linux edge package indexes: libusb-compat-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Compatility for older libusb (development files) | https://libusb.info/
- pacman - libusb-compat - 0.1.9-1: normalized package name match | Arch Linux sync databases: libusb-compat from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Library to enable user space application programs to communicate with USB devices | http://libusb.sourceforge.net/
- zypper - libusb-0_1-4 - 0.1.13-38.10: normalized package name match | openSUSE Tumbleweed package metadata: libusb-0_1-4 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | libusb-1.0 Compatibility Library for libusb-0.1 | https://libusb.info/
- zypper - libusb-0_1-4-32bit - 0.1.13-38.10: normalized package name match | openSUSE Tumbleweed package metadata: libusb-0_1-4-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | libusb-1.0 Compatibility Library for libusb-0.1 | https://libusb.info/
- zypper - libusb-compat-devel - 0.1.8-38.10: normalized package name match | openSUSE Tumbleweed package metadata: libusb-compat-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | libusb-1.0 Compatibility Layer for libusb-0.1 | https://libusb.info/
- MacPorts - libusb-compat: normalized package name match | MacPorts ports tree: devel/libusb-compat/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.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Matched curated package taxonomy and local package facts.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Build dependency declared by Homebrew.
- [autoconf](https://pkg.so/zh-hans/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://pkg.so/zh-hans/brew/automake/) - Build dependency declared by Homebrew.
- [libgphoto2](https://pkg.so/zh-hans/brew/libgphoto2/) - Popular package that depends on this formula.
- [avrdude](https://pkg.so/zh-hans/brew/avrdude/) - Popular package that depends on this formula.
- [hamlib](https://pkg.so/zh-hans/brew/hamlib/) - Popular package that depends on this formula.
- [bootloadhid](https://pkg.so/zh-hans/brew/bootloadhid/) - Popular package that depends on this formula.
- [libnfc](https://pkg.so/zh-hans/brew/libnfc/) - Popular package that depends on this formula.
- [apcupsd](https://pkg.so/zh-hans/brew/apcupsd/) - Popular package that depends on this formula.
- [mfoc](https://pkg.so/zh-hans/brew/mfoc/) - Popular package that depends on this formula.
- [mfcuk](https://pkg.so/zh-hans/brew/mfcuk/) - Popular package that depends on this formula.
- [lsusb](https://pkg.so/zh-hans/brew/lsusb/) - Shares pkgdb curated category or tags: cli, hardware, system, usb.
- [cyme](https://pkg.so/zh-hans/brew/cyme/) - Shares pkgdb curated category or tags: cli, hardware, system, usb.
- [libgusb](https://pkg.so/zh-hans/brew/libgusb/) - Shares pkgdb curated category or tags: cli, system, usb.
- [rkflashtool](https://pkg.so/zh-hans/brew/rkflashtool/) - Shares pkgdb curated category or tags: cli, hardware, system, usb.
- [nvtop](https://pkg.so/zh-hans/brew/nvtop/) - Shares pkgdb curated category or tags: cli, hardware, system.
- [sane-backends](https://pkg.so/zh-hans/brew/sane-backends/) - Shares pkgdb curated category or tags: cli, hardware, system.
- [libfreenect](https://pkg.so/zh-hans/brew/libfreenect/) - Shares pkgdb curated category or tags: cli, hardware, system.
- [liquidctl](https://pkg.so/zh-hans/brew/liquidctl/) - Shares pkgdb curated category or tags: cli, hardware, system.
- [libfreefare](https://pkg.so/zh-hans/brew/libfreefare/) - Local package facts share a topical domain. Shared terms: access, api, cli, compat, hardware.

## Combined YAML source

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