# Install khard with Homebrew, apk, apt, dnf, Nix, pacman

Console carddav client. Version 0.21.0 via Homebrew; verified 2026-06-16.

## Install

```sh
sudo av install brew:khard
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install khard
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add khard
```

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

- Debian apt (92%):

```sh
sudo apt install khard
```

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

- dnf (92%):

```sh
sudo dnf install khard
```

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

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

- pacman (92%):

```sh
sudo pacman -S khard
```

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

## Package facts

- **Package key:** brew:khard
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/khard>
- **Version:** 0.21.0
- **Source summary:** Console carddav client
- **Homepage:** <https://khard.readthedocs.io/en/latest/>
- **Repository:** <https://github.com/lucc/khard>
- **Upstream docs:** <https://khard.readthedocs.io/en/latest>
- **License:** GPL-3.0-only
- **Source archive:** <https://files.pythonhosted.org/packages/8f/47/e31cf968dbbba341887dd33bb84fd1ecba737bc762a5149c9c673f1ab6da/khard-0.21.0.tar.gz>
- **Last updated:** 2026-06-16T20:11:18Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- khard (cli)
- khard (alias)

## Dependencies

- python@3.14

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.21.0
- Package-manager updated: 2026-06-16
- Local data: ok
- Upstream repository: https://khard.readthedocs.io/en/latest/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

khard is a Unix-console address book for local vCard files. It reads, creates, modifies, and removes contacts, and is designed to cooperate with mail clients, text editors, vdir synchronizers, and VOIP clients.

### Project history

The upstream changelog records khard 0.1.0 on September 18, 2014 as the initial release. Early releases added a new project structure, Twinkle integration, alot support, nickname and web/contact fields, mutt-oriented email workflows, XDG_CONFIG_HOME support, YAML contact templates, and safer writes.

khard 0.11.0 on July 17, 2016 made the project Python 3 compatible and improved vCard 3.0 and 4.0 support. Later releases added generated documentation and man pages, stricter config validation, query syntax, pyproject-based packaging, and in version 0.18.0 on December 10, 2022 moved the project home on GitHub from the original scheibler namespace to lucc.

### Adoption history

khard grew in the same terminal PIM ecosystem as khal and vdirsyncer. Its README says it is packaged for multiple distributions and published on PyPI, and the batch metadata records packages for Alpine, Homebrew, Debian, Fedora, Nix, Arch, and Ubuntu.

The project was started by Eric Scheibler and later maintained by lucc, with multiple contributors over the years. That maintainer transition and the long changelog show a small but durable utility rather than a one-off script.

### How it is used

Users keep vCard files in local address-book directories, often synchronized from CardDAV by vdirsyncer, then use khard to list, search, show, edit, create, remove, and query contacts. It is commonly wired into mail-client address completion, especially mutt-style workflows.

### Why package nerds care

khard is significant as a packageable bridge between standards-based contact data and shell workflows. It turns vCard/CardDAV address books into files and CLI subcommands that can be composed with editors, mail clients, synchronizers, and dotfile-managed configuration.

### Timeline

- 2014-09-18: khard 0.1.0 initial release.
- 2015-09-05: khard 0.5.0 added merge support and XDG_CONFIG_HOME support.
- 2016-07-17: khard 0.11.0 made the project Python 3 compatible and enhanced vCard 3.0 and 4.0 support.
- 2020-04-04: khard 0.16.0 expanded documentation and built docs on Read the Docs.
- 2022-12-10: khard 0.18.0 moved the project home on GitHub from scheibler to lucc.
- 2026-06-15: khard 0.21.0 removed Python 3.9 support and fixed config skip_unparsable handling.

### Related projects

- vdirsyncer is the common synchronization companion. khal is the related console calendar program, while mutt, alot, and Twinkle are explicitly documented integration targets.

### Sources

- <https://formulae.brew.sh/formula/khard>
- <https://github.com/lucc/khard>
- <https://khard.readthedocs.io/en/latest>
- <https://raw.githubusercontent.com/lucc/khard/main/CHANGES>
- <https://raw.githubusercontent.com/lucc/khard/main/README.md>


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal


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


## Configuration files

- Unix: $XDG_CONFIG_HOME/khard/khard.conf, ~/.config/khard/khard.conf
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** khard
- **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 - khard - 0.19.1-5: normalized package name match | Debian stable package indexes: khard from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | address book for the Linux console | https://github.com/scheibler/khard
- Nix - khard: normalized package name match | nixpkgs package indexes: pkgs/by-name/kh/khard/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - khard - 0.19.1-2ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: khard from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | address book for the Linux console | https://github.com/scheibler/khard
- apk - khard - 0.20.1-r1: normalized package name match | Alpine Linux edge package indexes: khard from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Console CardDAV client | https://github.com/lucc/khard
- apk - khard-doc - 0.20.1-r1: normalized package name match | Alpine Linux edge package indexes: khard-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Console CardDAV client (documentation) | https://github.com/lucc/khard
- apk - khard-pyc - 0.20.1-r1: normalized package name match | Alpine Linux edge package indexes: khard-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for khard | https://github.com/lucc/khard
- dnf - khard - 0.20.0-6.fc45: normalized package name match | Fedora Rawhide package metadata: khard from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | An address book for the Linux console | https://github.com/scheibler/khard
- pacman - khard - 0.20.1-2: normalized package name match | Arch Linux sync databases: khard from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Console address book manager | https://github.com/lucc/khard


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [Productivity CLI packages](https://www.automicvault.com/pkg/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [lbdb](https://www.automicvault.com/pkg/brew/lbdb/) - Popular package that depends on this formula.
- [abook](https://www.automicvault.com/pkg/brew/abook/) - Shares av.db curated category or tags: address-book, cli, contacts, productivity.
- [vdirsyncer](https://www.automicvault.com/pkg/brew/vdirsyncer/) - Shares av.db curated category or tags: carddav, cli, contacts, productivity.
- [a2ps](https://www.automicvault.com/pkg/brew/a2ps/) - Shares av.db curated category or tags: cli, productivity.
- [acronym](https://www.automicvault.com/pkg/brew/acronym/) - Shares av.db curated category or tags: cli, productivity.
- [ad](https://www.automicvault.com/pkg/brew/ad/) - Shares av.db curated category or tags: cli, productivity.
- [aerc](https://www.automicvault.com/pkg/brew/aerc/) - Shares av.db curated category or tags: cli, productivity.
- [aldo](https://www.automicvault.com/pkg/brew/aldo/) - Shares av.db curated category or tags: cli, productivity.
- [fb-client](https://www.automicvault.com/pkg/brew/fb-client/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, client, productivity, python, python-3-14.

## Combined YAML source

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