# 使用 Homebrew, apk, apt, dnf, Nix, pacman 安装 khal

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

## 安装

```sh
sudo av install brew:khal
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install khal
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add khal
```

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

- Debian apt (92%):

```sh
sudo apt install khal
```

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

- dnf (92%):

```sh
sudo dnf install khal
```

  证据: Fedora Rawhide package metadata: khal from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#khal
```

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

- pacman (92%):

```sh
sudo pacman -S khal
```

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

## 软件包事实

- **软件包键:** brew:khal
- **软件包管理器:** Homebrew
- **版本:** 0.14.0
- **来源摘要:** CLI calendar application
- **主页:** <https://lostpackets.de/khal/>
- **仓库:** <https://github.com/pimutils/khal>
- **最后更新:** 2026-07-13T10:39:23Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ikhal (别名)
- khal (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.14.0
## 项目历史与用法

khal is a standards-based command-line and terminal calendar program for local iCalendar/vdir collections, commonly paired with vdirsyncer for CalDAV synchronization. Its interactive mode, ikhal, gives terminal users a text UI for browsing and editing calendars.

### 项目历史

The project copyright and changelog place khal's early development in the 2013-2014 period. By September 2014, version 0.3.0 introduced unified Sphinx-generated documentation and changed the configuration syntax. Version 0.5.0 on June 1, 2015 added search, at, birthday-calendar support, recurring-event options, and Python 3 support.

Version 0.8.0 on April 13, 2016 dropped Python 2 support, raised the vdirsyncer dependency, added the configure command, and moved the git repository to the pimutils GitHub organization. Later releases kept pace with Python and dependency changes, including 0.11.0 in April 2023 dropping Python versions before 3.8 and 0.14.0 in March 2026 dropping Python versions before 3.10.

### 采用历史

khal belongs to the Unix personal-information-management stack built around vdirsyncer and local vdir storage. Its README documents packaging for Debian/Ubuntu, Nix, Arch, Homebrew, Fedora, and FreeBSD, and notes that khal is packaged for most operating systems.

The project appealed to users who wanted scriptable, offline-friendly calendar workflows instead of browser-only calendaring. The split between khal and vdirsyncer kept synchronization separate from presentation, which matched the Unix style of composing small tools.

### 使用方式

Users configure one or more local calendar collections, often synchronized from CalDAV by vdirsyncer, then use khal for agenda views, date queries, quick event creation, imports, searches, and terminal UI editing through ikhal.

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

khal is significant in package-manager culture as part of the terminal PIM family: it turns CalDAV/iCalendar data into plain local files and a packageable CLI, making calendars available to shells, text UIs, and dotfile-managed systems.

### 时间线

- 2014-09-03: khal 0.3.0 introduced unified Sphinx documentation.
- 2015-06-01: khal 0.5.0 added search, at, birthday support, and Python 3 support.
- 2016-04-13: khal 0.8.0 dropped Python 2 support and moved to the pimutils GitHub organization.
- 2023-04-23: khal 0.11.0 dropped Python versions before 3.8.
- 2026-03-24: khal 0.14.0 dropped Python versions before 3.10 and added Python 3.14 support.

### Related projects

- vdirsyncer is the main companion synchronizer. khard is the related console address-book tool in the same terminal PIM ecosystem, while gcalcli and calendar-cli are documented alternatives with different storage and service assumptions.

### 来源

- <https://formulae.brew.sh/formula/khal>
- <https://github.com/pimutils/khal>
- <https://khal.readthedocs.io/>
- <https://raw.githubusercontent.com/pimutils/khal/master/CHANGELOG.rst>
- <https://raw.githubusercontent.com/pimutils/khal/master/README.rst>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- 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.


## Configuration files

- Unix: $XDG_CONFIG_HOME/khal/config, ~/.config/khal/config, ~/.khal/khal.conf, ./khal.conf
## 其他软件包管理器记录

- Debian apt - khal - 1:0.11.4-1: normalized package name match | Debian stable package indexes: khal from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Standards based CLI and terminal calendar program | https://github.com/pimutils/khal
- Debian apt - khal-doc - 1:0.11.4-1: normalized package name match | Debian stable package indexes: khal-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Standards based CLI and terminal calendar program - documentation | https://github.com/pimutils/khal
- Nix - khal: normalized package name match | nixpkgs package indexes: pkgs/by-name/kh/khal/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - khal - 1:0.11.3-1: normalized package name match | Ubuntu 24.04 LTS package indexes: khal from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Standards based CLI and terminal calendar program | https://github.com/pimutils/khal
- Ubuntu apt - khal-doc - 1:0.11.3-1: normalized package name match | Ubuntu 24.04 LTS package indexes: khal-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Standards based CLI and terminal calendar program - documentation | https://github.com/pimutils/khal
- apk - khal - 0.14.0-r1: normalized package name match | Alpine Linux edge package indexes: khal from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | CLI calendar application build around CalDAV | https://lostpackets.de/khal
- apk - khal-bash-completion - 0.14.0-r1: normalized package name match | Alpine Linux edge package indexes: khal-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for khal | https://lostpackets.de/khal
- apk - khal-doc - 0.14.0-r1: normalized package name match | Alpine Linux edge package indexes: khal-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | CLI calendar application build around CalDAV (documentation) | https://lostpackets.de/khal
- apk - khal-fish-completion - 0.14.0-r1: normalized package name match | Alpine Linux edge package indexes: khal-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for khal | https://lostpackets.de/khal
- apk - khal-pyc - 0.14.0-r1: normalized package name match | Alpine Linux edge package indexes: khal-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for khal | https://lostpackets.de/khal
- apk - khal-zsh-completion - 0.14.0-r1: normalized package name match | Alpine Linux edge package indexes: khal-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for khal | https://lostpackets.de/khal
- dnf - khal - 0.14.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: khal from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | CLI calendar application | https://github.com/pimutils/khal
- pacman - khal - 0.14.0-1: normalized package name match | Arch Linux sync databases: khal from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | CLI calendar application built around CalDAV | https://lostpackets.de/khal/


## Combined YAML source

View the package source record on GitHub. [combined/khal.yml](https://github.com/mxcl/pkgdb/blob/main/combined/khal.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
