# 使用 Homebrew, apt, dnf, MacPorts, Nix, zypper, winget 安装 klog

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

## 安装

```sh
sudo av install brew:klog
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install klog
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install klog
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install klog
```

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

- dnf (92%):

```sh
sudo dnf install klog
```

  证据: Fedora Rawhide package metadata: klog 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#klog
```

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

- zypper (92%):

```sh
sudo zypper install klog
```

  证据: openSUSE Tumbleweed package metadata: klog from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id EA4K.KLog -e
```

  证据: Windows Package Manager source index: EA4K.KLog from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:klog
- **软件包管理器:** Homebrew
- **版本:** 7.1
- **来源摘要:** Command-line tool for time tracking in a human-readable, plain-text file format
- **主页:** <https://klog.jotaen.net>
- **仓库:** <https://github.com/jotaen/klog>
- **最后更新:** 2026-07-27T21:58:39+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- klog (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

klog is both a command-line time tracker and a plain-text time-tracking file format. Its documentation frames the format as a notebook-like way to keep work logs editable in any text editor while still supporting terminal queries and reports.

### 项目历史

Jan Heuermann created klog as a small Go tool and file format for human-readable `.klg` files. Version 1.0 was released on 2021-02-06 with commands for totals, reports, tags, and bookmarks; version 2.0 followed in March 2021 with commands for creating records and starting or stopping open-ended time ranges.

The file-format side became more explicit in version 2.6 on 2021-07-25, when the changelog records the first version of the formal file format specification. The repository notes that the command-line tool and the file-format specification use independent version numbering and different license terms.

### 采用历史

klog's adoption has been strongest among plain-text productivity users rather than large platform deployments. The project documentation lists installs through Homebrew, AUR, Nix, openSUSE, Go, and downloadable binaries, which is typical for a small cross-platform Go CLI that appeals to users already comfortable storing data in versionable text files.

### 使用方式

A user writes records in `.klg` files, with dates, summaries, time ranges, durations, tags, open-ended ranges, and should-total annotations. The `klog` command then searches, totals, reports, edits bookmarks, and supports workflows where the same file remains readable without the tool.

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

klog is package-nerd catnip because it treats the data format as the product, not merely as an implementation detail. It belongs in the lineage of Ledger, todo.txt, Markdown, and other small tools where durable text, predictable CLI output, and easy packaging matter more than a service backend.

### 时间线

- 2021-02-02: v1.0-rc release published on GitHub.
- 2021-02-06: v1.0 release added report, tags, bookmark, and renamed `eval` to `total`.
- 2021-03-16: v2.0 release added create, track, start, and stop commands.
- 2021-03-19: v2.1 release provided a native Windows binary.
- 2021-07-25: v2.6 release published the first file-format specification version.
- 2021-10-07: v3.0 release added named bookmarks, editor integration, and more report aggregation options.

### Related projects

- klog is related to plain-text accounting and productivity tools such as Ledger, hledger, todo.txt, Timewarrior, and Taskwarrior, but it keeps the domain focused on human-readable time logs.

### 来源

- <https://github.com/jotaen/klog>
- <https://github.com/jotaen/klog/blob/main/CHANGELOG.md>
- <https://github.com/jotaen/klog/blob/main/Specification.md>
- <https://klog.jotaen.net/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Debian apt - klog - 2.4.1-1.1: normalized package name match | Debian stable package indexes: klog from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Multiplatform ham radio logging program | https://github.com/ea4k/klog
- Nix - klog: normalized package name match | nixpkgs package indexes: pkgs/by-name/kl/klog/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - klog - 2.3.3-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: klog from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Multiplatform ham radio logging program | https://www.klog.xyz
- dnf - klog - 2.5.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: klog from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A Ham radio logging program for KDE | https://www.klog.xyz/
- zypper - klog - 7.1-1.6: normalized package name match | openSUSE Tumbleweed package metadata: klog from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Time tracking in a human-readable, plain-text file format | https://github.com/jotaen/klog
- zypper - klog-bash-completion - 7.1-1.6: normalized package name match | openSUSE Tumbleweed package metadata: klog-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for klog | https://github.com/jotaen/klog
- zypper - klog-fish-completion - 7.1-1.6: normalized package name match | openSUSE Tumbleweed package metadata: klog-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fish Completion for klog | https://github.com/jotaen/klog
- zypper - klog-zsh-completion - 7.1-1.6: normalized package name match | openSUSE Tumbleweed package metadata: klog-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Zsh Completion for klog | https://github.com/jotaen/klog
- MacPorts - klog: normalized package name match | MacPorts ports tree: office/klog/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - EA4K.KLog: normalized package name match | Windows Package Manager source index: EA4K.KLog from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

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