# 使用 Homebrew 安装 karn

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

## 安装

```sh
sudo av install brew:karn
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install karn
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:karn
- **软件包管理器:** Homebrew
- **版本:** 0.1.0
- **来源摘要:** Manage multiple Git identities
- **主页:** <https://github.com/prydonius/karn>
- **仓库:** <https://github.com/prydonius/karn>
- **最后更新:** 2026-07-27T21:58:37+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- karn (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

karn is a small Git identity helper for developers who use different user.name and user.email values across personal, work, and open-source repositories.

### 项目历史

The project began as a Go command-line tool in March 2015. Its README describes the core behavior: karn checks a directory tree, compares it with a user configuration, and updates only a repository's local Git identity rather than the global Git configuration.

The release series stayed intentionally narrow. The v0.0.1 release was tagged from the initial implementation, and v0.1.0 in February 2021 added support for GPG signing keys.

### 采用历史

karn reached package-manager visibility through Homebrew and the Arch User Repository, which fits its audience: developers who want a shell-friendly way to keep Git identities separated without remembering per-repository commands.

### 使用方式

Typical use is to keep identity rules in ~/.karn.yml, then run karn manually or wrap Git commands so karn update runs before Git operations.

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

karn is a tidy example of a package-manager-sized developer convenience: a tiny binary, a dotfile, and a focused fix for a workflow footgun that Git itself leaves to local config discipline.

### 时间线

- 2015-03-28: Initial commit for the Go implementation
- 2015-03-29: v0.0.1 release
- 2021-02-12: v0.1.0 release work added GPG signing-key support

### Related projects

- Git local configuration, shell Git wrappers, and other per-repository identity helpers solve adjacent problems.

### 来源

- <https://formulae.brew.sh/formula/karn>
- <https://github.com/prydonius/karn>
- <https://github.com/prydonius/karn/commit/4d49400ffccd398cb3226a690102d58aeef26d93.patch>
- <https://github.com/prydonius/karn/commit/884cdbe20b0aed1e8f3c4d0df8f76a58a5b72f55.patch>
- <https://github.com/prydonius/karn/releases/tag/v0.0.1>
- <https://github.com/prydonius/karn/releases/tag/v0.1.0>


## 安全说明

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: ~/.karn.yml

## Combined YAML source

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


## 来源

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