# 使用 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
- **版本:** 0.1.9
- **来源摘要:** Library for USB device access
- **主页:** <https://libusb.info/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- libusb-config (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

- 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


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