# Install oath-toolkit with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Tools for one-time password authentication systems. Version 2.6.14 via Homebrew; verified 2026-06-27.

## Install

```sh
sudo av install brew:oath-toolkit
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install oath-toolkit
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install oath-toolkit
```

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

### Linux

- apk (92%):

```sh
sudo apk add oath-toolkit
```

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

- Debian apt (92%):

```sh
sudo apt install liboath-dev
```

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

- dnf (92%):

```sh
sudo dnf install liboath
```

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

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

- pacman (92%):

```sh
sudo pacman -S oath-toolkit
```

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

- zypper (92%):

```sh
sudo zypper install liboath-devel
```

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

## Package facts

- **Package key:** brew:oath-toolkit
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/oath-toolkit>
- **Version:** 2.6.14
- **Source summary:** Tools for one-time password authentication systems
- **Homepage:** <https://oath-toolkit.codeberg.page/>
- **Repository:** <https://codeberg.org/oath-toolkit/oath-toolkit>
- **Upstream docs:** <https://oath-toolkit.codeberg.page/docs.html>
- **License:** GPL-3.0-or-later AND LGPL-2.1-or-later
- **Source archive:** <https://download.savannah.nongnu.org/releases/oath-toolkit/oath-toolkit-2.6.14.tar.gz>
- **Last updated:** 2026-06-27T14:40:16-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- oathtool (cli)
- pskctool (cli)
- oathtool (alias)
- pskctool (alias)

## Dependencies

- libxml2
- libxmlsec1
- openssl@3

## Build dependencies

- 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: 2.6.14
- Package-manager updated: 2026-06-27
- Local data: ok
- Upstream repository: https://oath-toolkit.codeberg.page/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

OATH Toolkit is a long-running free software implementation of one-time password infrastructure. It provides shared C libraries, the oathtool and pskctool command-line tools, and a pam_oath module for integrating HOTP/TOTP authentication into Unix login stacks.

### Project history

Simon Josefsson introduced the OATH Toolkit publicly in January 2011 as software for OATH one-time password authentication, including oathtool and pam_oath. A May 2011 release announcement for version 1.10.0 points to the Nongnu project page, man pages, PAM documentation, API reference, signed release tarballs, and the Savannah project home.

The toolkit tracks the standards ecosystem around one-time passwords: HOTP from RFC 4226, TOTP from RFC 6238, and PSKC from RFC 6030. Later releases added support for HMAC-SHA256 and HMAC-SHA512 TOTP generation and validation APIs in version 2.6.0, and the project moved version-controlled source hosting to GitLab in version 2.6.2 before moving public Git hosting to Codeberg in version 2.6.13.

### Adoption history

OATH Toolkit spread through Unix package ecosystems because it solved a boring but durable operations problem: generating and validating standard OTP values and adding PAM-based OTP checks to existing systems. The input package record lists apk, Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Ubuntu, and openSUSE package names, reflecting broad distribution rather than a single application community.

### How it is used

Developers use liboath when embedding HOTP/TOTP validation in C applications, operators use oathtool for token generation and testing, pskctool handles Portable Symmetric Key Container data, and administrators use pam_oath to require OTP values during PAM authentication. A common deployment stores token records in a usersfile such as /etc/users.oath.

### Why package nerds care

The package is a classic security-toolchain package: small command-line utilities, a C library ABI, a PAM module, man pages, signed source releases, and long-term distro packaging. It also shows how standards-based authentication plumbing ages: compatibility fixes, crypto algorithm additions, build-system maintenance, and security advisories matter as much as new features.

### Timeline

- 2005: RFC 4226 defined the HOTP algorithm.
- 2010: RFC 6030 defined PSKC for symmetric key container data.
- 2011: RFC 6238 defined TOTP.
- 2011-01-20: Simon Josefsson published an introduction to OATH Toolkit.
- 2015-05-19: OATH Toolkit 2.6.0 added TOTP support with HMAC-SHA256 and HMAC-SHA512 APIs.
- 2016-08-27: OATH Toolkit 2.6.2 noted that version-controlled source moved to GitLab.
- 2024-10-03: OATH Toolkit 2.6.12 addressed CVE-2024-47191 in pam_oath/liboath.
- 2025-07-29: OATH Toolkit 2.6.13 moved Git hosting to Codeberg.

### Related projects

- OATH Toolkit is directly tied to the OATH HOTP/TOTP standards, Unix PAM, libxmlsec for PSKC-related functionality, and downstream distro packages such as Debian's oathtool/liboath-dev packages.

### Sources

- <https://blog.josefsson.org/2011/01/20/introducing-the-oath-toolkit/>
- <https://codeberg.org/api/v1/repos/oath-toolkit/oath-toolkit>
- <https://codeberg.org/oath-toolkit/oath-toolkit>
- <https://datatracker.ietf.org/doc/html/rfc4226>
- <https://datatracker.ietf.org/doc/html/rfc6030>
- <https://datatracker.ietf.org/doc/html/rfc6238>
- <https://formulae.brew.sh/formula/oath-toolkit>
- <https://lists.gnu.org/archive/html/oath-toolkit-help/2011-05/msg00053.html>
- <https://oath-toolkit.codeberg.page/>
- <https://oath-toolkit.codeberg.page/CVE-2024-47191.html>
- <https://oath-toolkit.codeberg.page/NEWS.html>
- <https://oath-toolkit.codeberg.page/man-oathtool.html>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Credential files

- Unix: /etc/users.oath
## Source Database Details

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

## Other Package-Manager Records

- Debian apt - liboath-dev - 2.6.12-1: normalized package name match | Debian stable package indexes: liboath-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for the OATH Toolkit Liboath library | https://www.nongnu.org/oath-toolkit/
- Debian apt - liboath0t64 - 2.6.12-1: normalized package name match | Debian stable package indexes: liboath0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OATH Toolkit Liboath library | https://www.nongnu.org/oath-toolkit/
- Debian apt - libpam-oath - 2.6.12-1: normalized package name match | Debian stable package indexes: libpam-oath from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OATH Toolkit libpam_oath PAM module | https://www.nongnu.org/oath-toolkit/
- Debian apt - libpskc-dev - 2.6.12-1: normalized package name match | Debian stable package indexes: libpskc-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for the OATH Toolkit Libpskc library | https://www.nongnu.org/oath-toolkit/
- Debian apt - libpskc0t64 - 2.6.12-1: normalized package name match | Debian stable package indexes: libpskc0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OATH Toolkit Libpskc library | https://www.nongnu.org/oath-toolkit/
- Debian apt - oathtool - 2.6.12-1: normalized package name match | Debian stable package indexes: oathtool from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OATH Toolkit oathtool command line tool | https://www.nongnu.org/oath-toolkit/
- Debian apt - pskctool - 2.6.12-1: normalized package name match | Debian stable package indexes: pskctool from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OATH Toolkit pskctool command line tool | https://www.nongnu.org/oath-toolkit/
- Nix - oath-toolkit: normalized package name match | nixpkgs package indexes: pkgs/by-name/oa/oath-toolkit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - liboath-dev - 2.6.11-2.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: liboath-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Development files for the OATH Toolkit Liboath library | https://www.nongnu.org/oath-toolkit/
- Ubuntu apt - liboath0t64 - 2.6.11-2.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: liboath0t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | OATH Toolkit Liboath library | https://www.nongnu.org/oath-toolkit/
- Ubuntu apt - libpam-oath - 2.6.11-2.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libpam-oath from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OATH Toolkit libpam_oath PAM module | https://www.nongnu.org/oath-toolkit/
- Ubuntu apt - libpskc-dev - 2.6.11-2.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libpskc-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Development files for the OATH Toolkit Libpskc library | https://www.nongnu.org/oath-toolkit/
- Ubuntu apt - libpskc0t64 - 2.6.11-2.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libpskc0t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | OATH Toolkit Libpskc library | https://www.nongnu.org/oath-toolkit/
- Ubuntu apt - oathtool - 2.6.11-2.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: oathtool from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OATH Toolkit oathtool command line tool | https://www.nongnu.org/oath-toolkit/
- Ubuntu apt - pskctool - 2.6.11-2.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: pskctool from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OATH Toolkit pskctool command line tool | https://www.nongnu.org/oath-toolkit/
- apk - oath-toolkit - 2.6.14-r1: normalized package name match | Alpine Linux edge package indexes: oath-toolkit from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | OATH Toolkit One-time password components | https://nongnu.org/oath-toolkit/


## 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.
- [libxml2](https://www.automicvault.com/pkg/brew/libxml2/) - Runtime dependency declared by Homebrew.
- [libxmlsec1](https://www.automicvault.com/pkg/brew/libxmlsec1/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [google-authenticator-libpam](https://www.automicvault.com/pkg/brew/google-authenticator-libpam/) - Shares av.db curated category or tags: authentication, cli, pam, security, totp.
- [linux-pam](https://www.automicvault.com/pkg/brew/linux-pam/) - Shares av.db curated category or tags: authentication, cli, pam, security.
- [totp-cli](https://www.automicvault.com/pkg/brew/totp-cli/) - Shares av.db curated category or tags: authentication, cli, otp, security, totp.
- [cotp](https://www.automicvault.com/pkg/brew/cotp/) - Shares av.db curated category or tags: authentication, cli, hotp, security, totp.
- [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, pam, security.
- [krb5](https://www.automicvault.com/pkg/brew/krb5/) - Shares av.db curated category or tags: authentication, cli, security.
- [libyubikey](https://www.automicvault.com/pkg/brew/libyubikey/) - Shares av.db curated category or tags: authentication, cli, otp, security.
- [opensaml](https://www.automicvault.com/pkg/brew/opensaml/) - Security-sensitive metadata or terminology overlaps. Shared terms: authentication, cli, openssl, openssl-3, security.
- [shibboleth-sp](https://www.automicvault.com/pkg/brew/shibboleth-sp/) - Security-sensitive metadata or terminology overlaps. Shared terms: authentication, cli, openssl, openssl-3, security.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
