# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt 安装 libu2f-server

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

## 安装

```sh
sudo av install brew:libu2f-server
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libu2f-server
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libu2f-server
```

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

### Linux

- apk (92%):

```sh
sudo apk add libu2f-server
```

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

- dnf (92%):

```sh
sudo dnf install libu2f-server
```

  证据: Fedora Rawhide package metadata: libu2f-server from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libu2f-server
```

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

- pacman (92%):

```sh
sudo pacman -S libu2f-server
```

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

- Debian apt (92%):

```sh
sudo apt install libu2f-server-dev
```

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

## 软件包事实

- **软件包键:** brew:libu2f-server
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libu2f-server>
- **版本:** 1.1.0
- **来源摘要:** Server-side of the Universal 2nd Factor (U2F) protocol
- **主页:** <https://developers.yubico.com/libu2f-server/>
- **上游文档:** <https://developers.yubico.com/libu2f-server/>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://developers.yubico.com/libu2f-server/Releases/libu2f-server-1.1.0.tar.xz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- u2f-server (cli)
- u2f-server (别名)

## 依赖

- json-c
- openssl@3

## 构建依赖

- check
- gengetopt
- help2man
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

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

libu2f-server is Yubico's C implementation of the server-side Universal 2nd Factor protocol, providing APIs and a small command-line tool for U2F registration and authentication flows.

### 项目历史

Yubico built libu2f-server for relying-party applications that needed to generate U2F registration and authentication JSON challenges and verify the cryptographic responses from U2F devices. Its README pairs it with libu2f-host, the host-side library and tool for talking to U2F authenticators.

The project followed semantic versioning and shipped a u2f-server debugging/testing utility. Its README also documented an important attestation-certificate limitation: the library did not validate the full X.509 attestation chain at registration time.

### 采用历史

The library belongs to the first wave of open-source U2F building blocks around the FIDO U2F 1.0 and 1.2 specifications. It was useful when web services and system integrators were adding hardware second-factor support before WebAuthn and FIDO2 became the dominant developer-facing APIs.

Yubico later moved the U2F libraries into maintenance and end-of-life status. Yubico's EOL page lists libu2f-server with a March 16, 2020 announcement date, March 16, 2021 end-of-life date, and libfido2 as the recommended alternative.

### 使用方式

Applications used the library to create registration and authentication challenges and verify responses. Operators and developers could use the u2f-server command with key-handle and public-key files to test registration and authentication flows together with libu2f-host.

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

libu2f-server is a neat package-history marker for the transition from U2F-specific libraries to FIDO2/WebAuthn stacks. It also shows the older split between host-side and server-side U2F packages that many distributions carried before libfido2 consolidated U2F and FIDO2 support.

### 时间线

- 2014: FIDO U2F 1.0 Proposed Standard defined the protocol family libu2f-server implemented.
- 2017: FIDO U2F 1.2 Proposed Standard refined the U2F specifications.
- 2020: Yubico announced end-of-life status for libu2f-server on March 16, 2020.
- 2021: Yubico's listed end-of-life date for libu2f-server was March 16, 2021.
- 2026: The GitHub repository was archived on June 3, 2026.

### Related projects

- libu2f-host is the matching host-side Yubico U2F library.
- libfido2 is Yubico's recommended successor with U2F and FIDO2 support.
- FIDO2 and WebAuthn are the broader successor standards that subsumed most U2F developer workflows.

### 来源

- <https://developers.yubico.com/libu2f-server/>
- <https://fidoalliance.org/specs/fido-u2f-v1.0-ps-20141009/fido-u2f-overview-ps-20141009.html>
- <https://github.com/Yubico/libu2f-server>
- <https://www.yubico.com/support/terms-conditions/yubico-end-of-life-policy/eol-products/>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libu2f-server
- **Version Scheme:** 0
- **Revision:** 3
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - libu2f-server-dev - 1.1.0-4+b2: normalized package name match | Debian stable package indexes: libu2f-server-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for the U2F server C library libu2f-server | https://developers.yubico.com/libu2f-server/
- Debian apt - libu2f-server0 - 1.1.0-4+b2: normalized package name match | Debian stable package indexes: libu2f-server0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Universal 2nd Factor (U2F) server communication C Library | https://developers.yubico.com/libu2f-server/
- Debian apt - u2f-server - 1.1.0-4+b2: normalized package name match | Debian stable package indexes: u2f-server from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Command line tool to do Universal 2nd Factor (U2F) operations | https://developers.yubico.com/libu2f-server/
- Nix - libu2f-server: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libu2f-server/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libu2f-server-dev - 1.1.0-4build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libu2f-server-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files for the U2F server C library libu2f-server | https://developers.yubico.com/libu2f-server/
- Ubuntu apt - libu2f-server0 - 1.1.0-4build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libu2f-server0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Universal 2nd Factor (U2F) server communication C Library | https://developers.yubico.com/libu2f-server/
- Ubuntu apt - u2f-server - 1.1.0-4build3: normalized package name match | Ubuntu 24.04 LTS package indexes: u2f-server from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Command line tool to do Universal 2nd Factor (U2F) operations | https://developers.yubico.com/libu2f-server/
- apk - libu2f-server - 1.1.0-r6: normalized package name match | Alpine Linux edge package indexes: libu2f-server from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Yubico Universal 2nd Factor (U2F) Server C Library | https://developers.yubico.com/libu2f-server/
- apk - libu2f-server-dev - 1.1.0-r6: normalized package name match | Alpine Linux edge package indexes: libu2f-server-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Yubico Universal 2nd Factor (U2F) Server C Library (development files) | https://developers.yubico.com/libu2f-server/
- apk - libu2f-server-doc - 1.1.0-r6: normalized package name match | Alpine Linux edge package indexes: libu2f-server-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Yubico Universal 2nd Factor (U2F) Server C Library (documentation) | https://developers.yubico.com/libu2f-server/
- dnf - libu2f-server - 1.0.1-36.fc45: normalized package name match | Fedora Rawhide package metadata: libu2f-server from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Yubico Universal 2nd Factor (U2F) Server C Library | https://developers.yubico.com/libu2f-server
- dnf - libu2f-server-devel - 1.0.1-36.fc45: normalized package name match | Fedora Rawhide package metadata: libu2f-server-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for libu2f-server | https://developers.yubico.com/libu2f-server
- dnf - u2f-server - 1.0.1-36.fc45: normalized package name match | Fedora Rawhide package metadata: u2f-server from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Server-side command-line tool for U2F devices | https://developers.yubico.com/libu2f-server
- pacman - libu2f-server - 1.1.0-7: normalized package name match | Arch Linux sync databases: libu2f-server from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Yubico Universal 2nd Factor (U2F) Server C Library | https://github.com/Yubico/libu2f-server
- MacPorts - libu2f-server: normalized package name match | MacPorts ports tree: security/libu2f-server/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [help2man](https://pkg.so/zh-hans/brew/help2man/) - Build dependency declared by Homebrew.
- [check](https://pkg.so/zh-hans/brew/check/) - Build dependency declared by Homebrew.
- [gengetopt](https://pkg.so/zh-hans/brew/gengetopt/) - Build dependency declared by Homebrew.
- [libyubikey](https://pkg.so/zh-hans/brew/libyubikey/) - Shares pkgdb curated category or tags: authentication, cli, security, yubico.
- [pam-u2f](https://pkg.so/zh-hans/brew/pam-u2f/) - Shares pkgdb curated category or tags: authentication, cli, security, u2f.
- [krb5](https://pkg.so/zh-hans/brew/krb5/) - Shares pkgdb curated category or tags: authentication, cli, security.
- [cyrus-sasl](https://pkg.so/zh-hans/brew/cyrus-sasl/) - Shares pkgdb curated category or tags: authentication, cli, security.
- [libfido2](https://pkg.so/zh-hans/brew/libfido2/) - Shares pkgdb curated category or tags: authentication, cli, security, u2f.
- [linux-pam](https://pkg.so/zh-hans/brew/linux-pam/) - Shares pkgdb curated category or tags: authentication, cli, security.
- [oath-toolkit](https://pkg.so/zh-hans/brew/oath-toolkit/) - Shares pkgdb curated category or tags: authentication, cli, security.
- [libjwt](https://pkg.so/zh-hans/brew/libjwt/) - Shares pkgdb curated category or tags: authentication, cli, security.

## Combined YAML source

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