# Install libfido2 with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Provides library functionality for FIDO U2F & FIDO 2.0, including USB. Version 1.17.0 via Homebrew; verified 2026-04-15.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libfido2
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libfido2
```

  Evidence: 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 fido2
```

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

- Debian apt (92%):

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

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

- dnf (92%):

```sh
sudo dnf install fido2-tools
```

  Evidence: Fedora Rawhide package metadata: fido2-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libfido2
```

  Evidence: 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
```

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

- zypper (92%):

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

  Evidence: openSUSE Tumbleweed package metadata: libfido2-1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:libfido2
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libfido2>
- **Version:** 1.17.0
- **Source summary:** Provides library functionality for FIDO U2F & FIDO 2.0, including USB
- **Homepage:** <https://developers.yubico.com/libfido2/>
- **Repository:** <https://github.com/Yubico/libfido2>
- **Upstream docs:** <https://developers.yubico.com/libfido2>
- **License:** BSD-2-Clause
- **Source archive:** <https://github.com/Yubico/libfido2/archive/refs/tags/1.17.0.tar.gz>
- **Last updated:** 2026-04-15T16:21:25Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- fido2-assert (cli)
- fido2-cred (cli)
- fido2-token (cli)
- fido2-assert (alias)
- fido2-cred (alias)
- fido2-token (alias)

## Dependencies

- libcbor
- openssl@3

## Build dependencies

- cmake
- mandoc
- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.17.0
- Package-manager updated: 2026-04-15
- Local data: ok
- Upstream repository: https://github.com/Yubico/libfido2
- Upstream latest detected: 1.17.0 (current)
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- 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-2.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | FIDO2 tools | https://github.com/Yubico/libfido2
- dnf - libfido2 - 1.17.0-2.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | FIDO2 library | https://github.com/Yubico/libfido2


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [mandoc](https://www.automicvault.com/pkg/brew/mandoc/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [freerdp](https://www.automicvault.com/pkg/brew/freerdp/) - Popular package that depends on this formula.
- [mysql-client@8.0](https://www.automicvault.com/pkg/brew/mysql-client-8-0/) - Popular package that depends on this formula.
- [mysql@8.0](https://www.automicvault.com/pkg/brew/mysql-8-0/) - Popular package that depends on this formula.
- [openssh](https://www.automicvault.com/pkg/brew/openssh/) - Popular package that depends on this formula.
- [pam-u2f](https://www.automicvault.com/pkg/brew/pam-u2f/) - Popular package that depends on this formula.
- [percona-server](https://www.automicvault.com/pkg/brew/percona-server/) - Popular package that depends on this formula.
- [libu2f-server](https://www.automicvault.com/pkg/brew/libu2f-server/) - Shares av.db curated category or tags: authentication, cli, security, u2f.
- [solo2-cli](https://www.automicvault.com/pkg/brew/solo2-cli/) - Shares av.db curated category or tags: authentication, cli, fido2, hardware-security, security.
- [cotp](https://www.automicvault.com/pkg/brew/cotp/) - Shares av.db curated category or tags: authentication, cli, security.
- [cyrus-sasl](https://www.automicvault.com/pkg/brew/cyrus-sasl/) - Shares av.db curated category or tags: authentication, cli, security.
- [duo_unix](https://www.automicvault.com/pkg/brew/duo-unix/) - Shares av.db curated category or tags: authentication, cli, security.
- [gauth](https://www.automicvault.com/pkg/brew/gauth/) - Shares av.db curated category or tags: authentication, cli, security.
- [google-authenticator-libpam](https://www.automicvault.com/pkg/brew/google-authenticator-libpam/) - Shares av.db curated category or tags: authentication, cli, security.
- [yubico-piv-tool](https://www.automicvault.com/pkg/brew/yubico-piv-tool/) - Security-sensitive metadata or terminology overlaps. Shared terms: authentication, cli, hardware, openssl, openssl-3.

## Combined YAML source

View the package source record on GitHub. [combined/libfido2.yml](https://github.com/automic-vault/db/blob/main/combined/libfido2.yml)


## Sources

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