Automic VaultAutomic Vault

brew

hidapi を Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper でインストール

hidapi のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install hidapi

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install hidapi

MacPorts ports tree · comms/hidapi/Portfile · ソース: api.github.com

Linux

Alpine Linux apk確認済み · 92%
sudo apk add hidapi

Alpine Linux edge package indexes · hidapi · ソース: dl-cdn.alpinelinux.org

Fedora dnf確認済み · 92%
sudo dnf install hidapi

Fedora Rawhide package metadata · hidapi · ソース: dl.fedoraproject.org

Nix確認済み · 92%
nix profile install nixpkgs#hidapi

nixpkgs package indexes · pkgs/by-name/hi/hidapi/package.nix · ソース: api.github.com

Arch Linux pacman確認済み · 92%
sudo pacman -S hidapi

Arch Linux sync databases · hidapi · ソース: geo.mirror.pkgbuild.com

Debian apt確認済み · 92%
sudo apt install libhidapi-dev

Debian stable package indexes · libhidapi-dev · ソース: deb.debian.org

openSUSE zypper確認済み · 92%
sudo zypper install libhidapi-devel

openSUSE Tumbleweed package metadata · libhidapi-devel · ソース: download.opensuse.org

概要

パッケージ概要

Library for communicating with USB and Bluetooth HID devices

コマンドとエイリアス

  • hidtest_hidraw
  • hidtest_libusb

履歴

プロジェクトの歴史と使われ方

HIDAPI is a small C library for talking to USB and Bluetooth HID-class devices across Windows, Linux, FreeBSD, and macOS. Its package-manager identity is both a development library and a pair of small test binaries used to verify HID access.

The project is valued because it hides the platform split between Windows `hid.dll`, macOS IOHidManager, Linux hidraw, and libusb-backed Unix builds behind one C API.

プロジェクトの歴史

HIDAPI was originally developed by Alan Ott of Signal 11 Software; the original license file carries a 2009 copyright notice. The tag history shows public 0.x releases beginning in 2010, with early work around test programs and platform makefiles.

The README records a major stewardship change on June 4, 2019, when the project moved to `libusb/hidapi` to merge important bug fixes and continue development. Release tags after that move include 0.9.0 in June 2019 and later work on CMake, Meson wrapping, API additions, and backend fixes.

The library kept its simple integration model across the move: applications can link a shared library or embed one platform-specific source file plus the public header. That made HIDAPI practical for hardware tools that need a low-friction C dependency.

採用の歴史

HIDAPI is widely packaged because it solves a cross-platform hardware problem at the C ABI level. The input package map lists packages for Alpine, Homebrew, Debian/Ubuntu, Fedora, MacPorts, Nix, Arch, and openSUSE-style systems.

The libusb-hosted repository also matters socially: libusb is a familiar home for USB users, and the README says the Linux/libusb backend uses libusb-1.0 while Linux/hidraw supports both USB and Bluetooth HID devices.

使われ方

Typical application usage is to initialize the library, open a device by vendor ID and product ID, exchange input/output/feature reports, and close/finalize the handle. The README includes a compact C example and points developers to `hidtest/test.c` as a starting point.

On Linux, users choose between `libhidapi-hidraw` and `libhidapi-libusb` at link time, with udev rules needed for unprivileged device access. On macOS and Windows, HIDAPI uses the native HID frameworks exposed by the operating system.

パッケージ好きにとっての重要性

HIDAPI is a classic package-manager library: small, C ABI-friendly, cross-platform, and pulled into many higher-level device tools. It earns its slot in package sets because every downstream would rather not reinvent HID enumeration and report I/O per OS.

Its licensing is also package-relevant. The README and license files describe GPL-3.0, BSD-style, and original HIDAPI license options, letting open-source and closed-source consumers pick an appropriate licensing path.

タイムライン

  • 2009: Original HIDAPI license text credits Alan Ott and Signal 11 Software.
  • 2010: hidapi-0.1.0 tag starts the public release line.
  • 2019: Project moves to libusb/hidapi for continued maintenance.
  • 2019: hidapi-0.9.0 is released after the libusb stewardship move.
  • 2023: hidapi-0.13.0 adds device-info API work and Meson wrapper support.
  • 2025: hidapi-0.15.0 adds more report/error API surface.

Related projects

  • libusb is both a related project and one of HIDAPI's Unix backends.
  • hidraw is the Linux kernel interface used by HIDAPI's Linux/hidraw backend.
  • hidapitester is a console test application recommended by the README for trying HID devices before integrating HIDAPI into an application.

ソース

  • Build documentation: https://github.com/libusb/hidapi/blob/master/BUILD.md
  • License files: https://github.com/libusb/hidapi/blob/master/LICENSE.txt
  • Public API header: https://github.com/libusb/hidapi/blob/master/hidapi/hidapi.h
  • README: https://github.com/libusb/hidapi#readme
  • Repository tags: https://github.com/libusb/hidapi/tags

セキュリティ状態

リスクレベル: グリーン

library-like package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • library-like package without higher-risk signals

信号

  • metadata:library-like

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 8 個のプラットフォームターゲットで利用できます。
  • ビルドメタデータには 2 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
hidtest_hidrawcliグローバル実行可能ファイル
hidtest_libusbcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-10
マネージャ版0.15.0
マネージャ更新日2026-06-15
ローカルデータOK
上流最新
検出された最新hidapi-0.15.0

https://github.com/libusb/hidapi

  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:hidapi
バージョン0.15.0
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/hidapi
ホームページhttps://libusb.info/hidapi/
リポジトリhttps://github.com/libusb/hidapi
上流ドキュメントhttps://github.com/libusb/hidapi#readme
ライセンスGPL-3.0-only OR BSD-3-Clause OR HIDAPI
ソースアーカイブhttps://github.com/libusb/hidapi/archive/refs/tags/hidapi-0.15.0.tar.gz
最終更新2026-06-15T10:20:18-04:00
Pulseupdated
ビルド依存関係cmake, pkgconf
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehidapi
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Debian apt95%

libhidapi-dev 0.14.0-1+b2

Multi-Platform library for communication with HID devices (development files)

https://github.com/libusb/hidapi

sudo apt install libhidapi-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: hidapi
  • 2 依存関係
  • normalized package name match
  • 一致条件: Hidapi
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libhidapi-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libhidapi-hidraw0 0.14.0-1+b2

Multi-Platform library for communication with HID devices (hidraw backend)

https://github.com/libusb/hidapi

sudo apt install libhidapi-hidraw0
  • Section: libs
  • Architecture: amd64
  • Source Package: hidapi
  • 2 依存関係
  • normalized package name match
  • 一致条件: Hidapi
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libhidapi-hidraw0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libhidapi-libusb0 0.14.0-1+b2

Multi-Platform library for communication with HID devices (libusb backend)

https://github.com/libusb/hidapi

sudo apt install libhidapi-libusb0
  • Section: libs
  • Architecture: amd64
  • Source Package: hidapi
  • 2 依存関係
  • normalized package name match
  • 一致条件: Hidapi
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libhidapi-libusb0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

hidapi

nix profile install nixpkgs#hidapi
  • normalized package name match
  • 一致条件: Hidapi
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/hi/hidapi/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libhidapi-dev 0.14.0-1build1

Multi-Platform library for communication with HID devices (development files)

https://github.com/libusb/hidapi

sudo apt install libhidapi-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: hidapi
  • 2 依存関係
  • normalized package name match
  • 一致条件: Hidapi
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libhidapi-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libhidapi-hidraw0 0.14.0-1build1

Multi-Platform library for communication with HID devices (hidraw backend)

https://github.com/libusb/hidapi

sudo apt install libhidapi-hidraw0
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: hidapi
  • 2 依存関係
  • normalized package name match
  • 一致条件: Hidapi
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libhidapi-hidraw0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libhidapi-libusb0 0.14.0-1build1

Multi-Platform library for communication with HID devices (libusb backend)

https://github.com/libusb/hidapi

sudo apt install libhidapi-libusb0
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: hidapi
  • 2 依存関係
  • normalized package name match
  • 一致条件: Hidapi
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libhidapi-libusb0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

hidapi 0.15.0-r0

Simple library for communicating with USB and Bluetooth HID devices

https://github.com/libusb/hidapi

sudo apk add hidapi
  • License: GPL-3.0-only OR BSD-3-Clause
  • Architecture: x86_64
  • Source Package: hidapi
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Hidapi
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hidapi from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

hidapi-dev 0.15.0-r0

Simple library for communicating with USB and Bluetooth HID devices (development files)

https://github.com/libusb/hidapi

sudo apk add hidapi-dev
  • License: GPL-3.0-only OR BSD-3-Clause
  • Architecture: x86_64
  • Source Package: hidapi
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Hidapi
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hidapi-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

hidapi 0.15.0-3.fc44

Library for communicating with USB and Bluetooth HID devices

https://github.com/libusb/hidapi

sudo dnf install hidapi
  • License: GPL-3.0-only OR BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: hidapi
  • 5 依存関係
  • 3 提供
  • normalized package name match
  • 一致条件: Hidapi
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: hidapi from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

hidapi-devel 0.15.0-3.fc44

Development files for hidapi

https://github.com/libusb/hidapi

sudo dnf install hidapi-devel
  • License: GPL-3.0-only OR BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: hidapi
  • 5 依存関係
  • 3 提供
  • normalized package name match
  • 一致条件: Hidapi
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: hidapi-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

mingw32-hidapi 0.15.0-3.fc44

Development files for hidapi

https://github.com/libusb/hidapi

sudo dnf install mingw32-hidapi
  • License: GPL-3.0-only OR BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hidapi
  • 4 依存関係
  • 3 提供
  • normalized package name match
  • 一致条件: Hidapi
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mingw32-hidapi from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

mingw64-hidapi 0.15.0-3.fc44

Development files for hidapi

https://github.com/libusb/hidapi

sudo dnf install mingw64-hidapi
  • License: GPL-3.0-only OR BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hidapi
  • 4 依存関係
  • 3 提供
  • normalized package name match
  • 一致条件: Hidapi
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mingw64-hidapi from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

hidapi 0.15.0-1

Simple library for communicating with USB and Bluetooth HID devices

https://github.com/libusb/hidapi

sudo pacman -S hidapi
  • License: GPL3 AND BSD AND custom
  • Architecture: x86_64
  • 1 依存関係
  • 2 提供
  • 1 任意依存関係
  • normalized package name match
  • 一致条件: Hidapi
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: hidapi from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

libhidapi-devel 0.14.0-1.7

Development libraries and header files for hidapi

https://github.com/libusb/hidapi

sudo zypper install libhidapi-devel
  • License: BSD-3-Clause OR GPL-3.0-or-later
  • Category: Development/Libraries/C and C++
  • Architecture: x86_64
  • Source Package: hidapi
  • 6 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: Hidapi
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libhidapi-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libhidapi-hidraw0 0.14.0-1.7

Simple library for communicating with USB and Bluetooth HID devices

https://github.com/libusb/hidapi

sudo zypper install libhidapi-hidraw0
  • License: BSD-3-Clause OR GPL-3.0-or-later
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: hidapi
  • 3 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: Hidapi
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libhidapi-hidraw0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment