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

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

## 安装

```sh
sudo av install brew:libfido2
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libfido2
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libfido2
```

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

### Linux

- apk (92%):

```sh
sudo apk add libfido2
```

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

- dnf (92%):

```sh
sudo dnf install libfido2
```

  证据: Fedora Rawhide package metadata: libfido2 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#libfido2
```

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

- pacman (92%):

```sh
sudo pacman -S libfido2
```

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

- Debian apt (92%):

```sh
sudo apt install fido2-tools
```

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

- zypper (92%):

```sh
sudo zypper install libfido2-1
```

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

## 软件包事实

- **软件包键:** brew:libfido2
- **软件包管理器:** Homebrew
- **版本:** 1.17.0
- **来源摘要:** Provides library functionality for FIDO U2F & FIDO 2.0, including USB
- **主页:** <https://developers.yubico.com/libfido2/>
- **仓库:** <https://github.com/Yubico/libfido2>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fido2-assert (别名)
- fido2-cred (别名)
- fido2-token (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

libfido2 is Yubico's BSD-licensed C library and command-line tool set for communicating with FIDO devices over USB or NFC and verifying attestation and assertion signatures. It supports FIDO U2F as CTAP1 and FIDO2 as CTAP2.

### 项目历史

Yubico's NEWS file lists libfido2 0.1.0 on May 18, 2018 as the first beta release. The project reached 1.0.0 on March 21, 2019 with native HID support on Linux, macOS, and Windows, command options for U2F on dual authenticators, resident-key handling, CTAP2 CBOR checks, fuzzing harnesses, and documentation fixes.

Later releases followed the FIDO standards curve: hmac-secret support in 2018, credential management and richer option APIs in 2019, U2F fallback and credProtect in 2020, NFC support on Linux and FIDO 2.1 work in 2021, and CTAP 2.3 support in 2026.

### 采用历史

The README documents package installs for Fedora, Ubuntu, Homebrew on macOS, and Windows release artifacts. Its command-line tools, fido2-cred, fido2-assert, and fido2-token, made low-level authenticator operations packageable outside browser stacks.

### 使用方式

Developers link libfido2 when they need direct authenticator communication, attestation verification, assertion verification, or tooling around security keys. System users also install fido2-tools to inspect tokens and exercise credentials from the shell.

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

libfido2 is package-nerd significant because it brings passkey/security-key plumbing into the Unix packaging world as a normal C library, CLI suite, udev-rule companion, and dependency for higher-level authentication integrations.

### 时间线

- 2018-05-18: Yubico NEWS lists libfido2 0.1.0 as the first beta release.
- 2019-03-21: Yubico NEWS lists libfido2 1.0.0 with native HID support on Linux, macOS, and Windows.
- 2020-04-15: Version 1.4.0 added U2F fallback and FIDO2 credential-protection support.
- 2021-10-27: Version 1.9.0 enabled NFC support on Linux and added OpenSSL 3.0 compatibility.
- 2026-04-15: Version 1.17.0 added CTAP 2.3 support.

### Related projects

- Related projects and standards include YubiKeys, FIDO U2F, CTAP1, CTAP2, WebAuthn, libcbor, OpenSSL, zlib, systemd-udev, and language bindings such as Fido2Net, go-libfido2, p5-FIDO-Raw, and Rust libfido2 bindings.

### 来源

- <https://developers.yubico.com/CTAP/>
- <https://developers.yubico.com/libfido2/>
- <https://developers.yubico.com/libfido2/Releases/>
- <https://github.com/Yubico/libfido2>
- <https://raw.githubusercontent.com/Yubico/libfido2/main/NEWS>
- <https://raw.githubusercontent.com/Yubico/libfido2/main/README.adoc>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

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

- Debian apt - fido2-tools - 1.15.0-1+b1: normalized package name match | Debian stable package indexes: fido2-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command-line tools to configure and use a FIDO 2 token | https://developers.yubico.com/libfido2/
- Debian apt - libfido2-1 - 1.15.0-1+b1: normalized package name match | Debian stable package indexes: libfido2-1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for generating and verifying FIDO 2.0 objects | https://developers.yubico.com/libfido2/
- Debian apt - libfido2-dev - 1.15.0-1+b1: normalized package name match | Debian stable package indexes: libfido2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for generating and verifying FIDO 2.0 objects -- headers | https://developers.yubico.com/libfido2/
- Debian apt - libfido2-doc - 1.15.0-1: normalized package name match | Debian stable package indexes: libfido2-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for generating and verifying FIDO 2.0 objects -- documentation | https://developers.yubico.com/libfido2/
- Nix - libfido2: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libfido2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - fido2-tools - 1.14.0-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: fido2-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command-line tools to configure and use a FIDO 2 token | https://developers.yubico.com/libfido2/
- Ubuntu apt - libfido2-1 - 1.14.0-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libfido2-1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for generating and verifying FIDO 2.0 objects | https://developers.yubico.com/libfido2/
- Ubuntu apt - libfido2-dev - 1.14.0-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libfido2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for generating and verifying FIDO 2.0 objects -- headers | https://developers.yubico.com/libfido2/
- Ubuntu apt - libfido2-doc - 1.14.0-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libfido2-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for generating and verifying FIDO 2.0 objects -- documentation | https://developers.yubico.com/libfido2/
- apk - fido2 - 1.16.0-r4: normalized package name match | Alpine Linux edge package indexes: fido2 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | commandline utilities for FIDO 2.0 | https://github.com/Yubico/libfido2
- apk - libfido2 - 1.16.0-r4: normalized package name match | Alpine Linux edge package indexes: libfido2 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | library for FIDO 2.0 functionality | https://github.com/Yubico/libfido2
- apk - libfido2-dev - 1.16.0-r4: normalized package name match | Alpine Linux edge package indexes: libfido2-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | library for FIDO 2.0 functionality (development files) | https://github.com/Yubico/libfido2
- apk - libfido2-doc - 1.16.0-r4: normalized package name match | Alpine Linux edge package indexes: libfido2-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | library for FIDO 2.0 functionality (documentation) | https://github.com/Yubico/libfido2
- apk - libfido2-udev - 1.16.0-r4: normalized package name match | Alpine Linux edge package indexes: libfido2-udev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | library for FIDO 2.0 functionality (udev rules) | https://github.com/Yubico/libfido2
- dnf - fido2-tools - 1.17.0-5.fc45: normalized package name match | Fedora Rawhide package metadata: fido2-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | FIDO2 tools | https://github.com/Yubico/libfido2
- dnf - libfido2 - 1.17.0-5.fc45: normalized package name match | Fedora Rawhide package metadata: libfido2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | FIDO2 library | https://github.com/Yubico/libfido2


## Combined YAML source

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