# 使用 Homebrew 安装 karn

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install karn
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:karn
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/karn>
- **版本:** 0.1.0
- **来源摘要:** Manage multiple Git identities
- **主页:** <https://github.com/prydonius/karn>
- **仓库:** <https://github.com/prydonius/karn>
- **上游文档:** <https://github.com/prydonius/karn#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/prydonius/karn/archive/refs/tags/v0.1.0.tar.gz>
- **最后更新:** 2026-06-18T09:25:52+09:00
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- karn (cli)
- karn (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.1.0
- 管理器更新时间: 2026-06-18
- 本地数据: OK
- 上游仓库: https://github.com/prydonius/karn
- 检测到的最新版本: v0.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
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** karn
- **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


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [gitnr](https://www.automicvault.com/zh-hans/pkg/brew/gitnr/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, git, version-control.
- [gource](https://www.automicvault.com/zh-hans/pkg/brew/gource/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, git, version-control.
- [grokmirror](https://www.automicvault.com/zh-hans/pkg/brew/grokmirror/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, git, version-control.
- [lucky-commit](https://www.automicvault.com/zh-hans/pkg/brew/lucky-commit/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, git, version-control.
- [ugit](https://www.automicvault.com/zh-hans/pkg/brew/ugit/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, git, version-control.
- [aicommit](https://www.automicvault.com/zh-hans/pkg/brew/aicommit/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [aicommit2](https://www.automicvault.com/zh-hans/pkg/brew/aicommit2/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [aicommits](https://www.automicvault.com/zh-hans/pkg/brew/aicommits/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-get](https://www.automicvault.com/zh-hans/pkg/brew/git-get/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.
- [git-workspace](https://www.automicvault.com/zh-hans/pkg/brew/git-workspace/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.

## Combined YAML source

View the package source record on GitHub. [combined/karn.yml](https://github.com/automic-vault/db/blob/main/combined/karn.yml)


## 来源

- 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
- cross-ecosystem install command graph
