# 使用 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/klog>
- **版本:** 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>
- **上游文档:** <https://klog.jotaen.net>
- **许可证:** MIT
- **源码归档:** <https://github.com/jotaen/klog/archive/refs/tags/v7.1.tar.gz>
- **最后更新:** 2026-07-27T21:58:39+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- klog (cli)
- klog (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 7.1
- 管理器更新时间: 2026-07-27
- 本地数据: OK
- 上游仓库: https://github.com/jotaen/klog
- 检测到的最新版本: v7.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

## 源数据库详情

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

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

- 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [harsh](https://pkg.so/zh-hans/brew/harsh/) - Shares pkgdb curated category or tags: cli, go, plain-text, productivity.
- [timewarrior](https://pkg.so/zh-hans/brew/timewarrior/) - Shares pkgdb curated category or tags: cli, productivity, time-tracking.
- [tock](https://pkg.so/zh-hans/brew/tock/) - Shares pkgdb curated category or tags: cli, go, productivity, time-tracking.
- [watson](https://pkg.so/zh-hans/brew/watson/) - Shares pkgdb curated category or tags: cli, productivity, time-tracking.
- [bartib](https://pkg.so/zh-hans/brew/bartib/) - Shares pkgdb curated category or tags: cli, productivity, time-tracking.
- [mackup](https://pkg.so/zh-hans/brew/mackup/) - Shares pkgdb curated category or tags: cli, productivity.
- [superfile](https://pkg.so/zh-hans/brew/superfile/) - Shares pkgdb curated category or tags: cli, go, productivity.
- [lf](https://pkg.so/zh-hans/brew/lf/) - Shares pkgdb curated category or tags: cli, go, productivity.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
