# Install libyubikey with Homebrew, apt, dnf, MacPorts, Nix, pacman, zypper

C library for manipulating Yubico one-time passwords. Version 1.13 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:libyubikey
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libyubikey
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libyubikey
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install libyubikey-dev
```

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

- dnf (92%):

```sh
sudo dnf install libyubikey
```

  Evidence: Fedora Rawhide package metadata: libyubikey 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#libyubikey
```

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

- pacman (92%):

```sh
sudo pacman -S yubico-c
```

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

- zypper (92%):

```sh
sudo zypper install libyubikey-devel
```

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

## Package facts

- **Package key:** brew:libyubikey
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libyubikey>
- **Version:** 1.13
- **Source summary:** C library for manipulating Yubico one-time passwords
- **Homepage:** <https://yubico.github.io/yubico-c/>
- **Repository:** <https://github.com/Yubico/yubico-c>
- **Upstream docs:** <https://yubico.github.io/yubico-c>
- **License:** BSD-2-Clause
- **Source archive:** <https://developers.yubico.com/yubico-c/Releases/libyubikey-1.13.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- modhex (cli)
- ykgenerate (cli)
- ykparse (cli)
- modhex (alias)
- ykgenerate (alias)
- ykparse (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.13
- Local data: ok
- Upstream repository: https://yubico.github.io/yubico-c/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

libyubikey is the C library inside Yubico yubico-c for low-level YubiKey one-time-password work: modhex conversion, OTP parsing, and OTP generation around the original Yubico authentication model.

### Project history

Yubico was founded in Stockholm in 2007 and launched YubiKey 1.0 in 2008 as a driverless one-touch OTP authenticator that identifies as a keyboard. yubico-c followed as the low-level C software development kit for the YubiKey authentication device.

The yubico-c repository describes the command-line tools that expose the library concepts: modhex converts between modhex, hex, and binary forms; ykparse decrypts and parses one OTP with the corresponding AES key; ykgenerate constructs and encrypts one OTP from key and internal token data.

### Adoption history

libyubikey belongs to the pre-FIDO YubiKey software stack, when OTP validation and provisioning were central to deploying hardware authentication. As Yubico and Google moved U2F into the FIDO Alliance in 2013 and browsers and services adopted FIDO U2F from 2014 onward, libyubikey remained relevant for legacy OTP integrations and tooling rather than newer WebAuthn flows.

Yubico announced end-of-life for yubico-c on February 19, 2025, with end-of-life scheduled for February 19, 2026. That makes the package historically important as part of the original YubiKey OTP era, even where newer Yubico libraries cover PIV, FIDO, OATH, or platform-specific use cases.

### How it is used

Packagers expose libyubikey as a small C library plus tools for modhex and YubiKey OTP token work. It is most useful for test vectors, provisioning scripts, compatibility tooling, and software that needs to parse or generate Yubico OTP values without pulling in higher-level device-management stacks.

### Why package nerds care

For package nerds, libyubikey is a tiny security package with a lot of context packed into it: custom alphabets, AES-backed OTP fields, hardware-token history, man pages, Autotools, and a clear line from early two-factor authentication to later FIDO/WebAuthn ecosystems.

### Timeline

- 2007: Yubico was founded in Stockholm and developed a YubiKey 1.0 prototype.
- 2008: YubiKey 1.0 was launched.
- 2010: Yubico added OATH one-time-password support to the YubiKey product line.
- 2013: Yubico and Google contributed U2F technical specifications to the FIDO Alliance.
- 2025-02-19: Yubico announced end-of-life for yubico-c.
- 2026-02-19: Yubico scheduled yubico-c to reach end-of-life.

### Related projects

- yubico-c is the upstream source package for libyubikey. Related Yubico projects include higher-level YubiKey management and protocol libraries, while U2F, FIDO2, and WebAuthn represent the standards track that superseded many OTP-first deployments.

### Sources

- <https://developers.yubico.com/yubico-c/>
- <https://github.com/Yubico/yubico-c>
- <https://www.yubico.com/why-yubico/yubico-innovation-history/>


## 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:** libyubikey
- **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 - libyubikey-dev - 1.13-6: normalized package name match | Debian stable package indexes: libyubikey-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Yubikey OTP library development files | https://developers.yubico.com/yubico-c/
- Debian apt - libyubikey0 - 1.13-6: normalized package name match | Debian stable package indexes: libyubikey0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Yubikey OTP handling library runtime | https://developers.yubico.com/yubico-c/
- Nix - libyubikey: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libyubikey/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libyubikey-dev - 1.13-6: normalized package name match | Ubuntu 24.04 LTS package indexes: libyubikey-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Yubikey OTP library development files | https://developers.yubico.com/yubico-c/
- Ubuntu apt - libyubikey0 - 1.13-6: normalized package name match | Ubuntu 24.04 LTS package indexes: libyubikey0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Yubikey OTP handling library runtime | https://developers.yubico.com/yubico-c/
- dnf - libyubikey - 1.13-27.fc44: normalized package name match | Fedora Rawhide package metadata: libyubikey from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | C library for decrypting and parsing Yubikey One-time passwords | http://opensource.yubico.com/yubico-c
- dnf - libyubikey-devel - 1.13-27.fc44: normalized package name match | Fedora Rawhide package metadata: libyubikey-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for libyubikey | http://opensource.yubico.com/yubico-c
- pacman - yubico-c - 1.13-8: normalized package name match | Arch Linux sync databases: yubico-c from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Yubico YubiKey C library | https://github.com/Yubico/yubico-c
- zypper - libyubikey-devel - 1.13-3.29: normalized package name match | openSUSE Tumbleweed package metadata: libyubikey-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Yubico's USB key low-level C library | https://developers.yubico.com/
- zypper - libyubikey-tools - 1.13-3.29: normalized package name match | openSUSE Tumbleweed package metadata: libyubikey-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Tools to support Yubico's USB key low-level C library | https://developers.yubico.com/
- zypper - libyubikey0 - 1.13-3.29: normalized package name match | openSUSE Tumbleweed package metadata: libyubikey0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Yubico's USB key low-level C library | https://developers.yubico.com/
- MacPorts - libyubikey: normalized package name match | MacPorts ports tree: security/libyubikey/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [ykpers](https://www.automicvault.com/pkg/brew/ykpers/) - Popular package that depends on this formula.
- [cyrus-sasl](https://www.automicvault.com/pkg/brew/cyrus-sasl/) - Shares av.db curated category or tags: authentication, cli, library, security.
- [libu2f-server](https://www.automicvault.com/pkg/brew/libu2f-server/) - Shares av.db curated category or tags: authentication, cli, security, yubico.
- [oath-toolkit](https://www.automicvault.com/pkg/brew/oath-toolkit/) - Shares av.db curated category or tags: authentication, cli, otp, security.
- [totp-cli](https://www.automicvault.com/pkg/brew/totp-cli/) - Shares av.db curated category or tags: authentication, cli, otp, security.
- [google-authenticator-libpam](https://www.automicvault.com/pkg/brew/google-authenticator-libpam/) - Shares av.db curated category or tags: authentication, cli, security.
- [heimdal](https://www.automicvault.com/pkg/brew/heimdal/) - Shares av.db curated category or tags: authentication, cli, security.
- [krb5](https://www.automicvault.com/pkg/brew/krb5/) - Shares av.db curated category or tags: authentication, cli, security.
- [kstart](https://www.automicvault.com/pkg/brew/kstart/) - Shares av.db curated category or tags: authentication, cli, security.
- [stoken](https://www.automicvault.com/pkg/brew/stoken/) - Security-sensitive metadata or terminology overlaps. Shared terms: authentication, cli, one, security, time.

## Combined YAML source

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