# 使用 Homebrew, Nix 安装 kconf

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

## 安装

```sh
sudo av install brew:kconf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kconf
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#kconf
```

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

## 软件包事实

- **软件包键:** brew:kconf
- **软件包管理器:** Homebrew
- **版本:** 2.0.0
- **来源摘要:** CLI for managing multiple kubeconfigs
- **主页:** <https://github.com/particledecay/kconf>
- **仓库:** <https://github.com/particledecay/kconf>
- **最后更新:** 2026-07-27T21:58:38+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- kconf (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

kconf is an opinionated command-line tool for managing multiple kubeconfig entries in the default Kubernetes config file.

### 项目历史

The repository was created in January 2020. Its README explains the motivation as replacing shell automation around the KUBECONFIG environment variable with commands that merge, list, view, remove, and switch contexts in $HOME/.kube/config.

### 采用历史

The batch input records Homebrew and Nix packages. Upstream release history shows rapid 1.x releases during 2020 and a 2.0.0 release on November 17, 2023.

### 使用方式

kconf is used to add kubeconfig files, optionally rename contexts on import, list contexts, print one context's config, switch contexts, and set namespaces while leaving kubectl pointed at its default config path.

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

kconf is a small example of Kubernetes CLI tooling that wraps a common dotfile workflow instead of introducing a new service or database. Its package value is convenience: one executable for a task many operators otherwise solve with shell snippets.

### 时间线

- 2020-01-14: GitHub repository created.
- 2020-01-21: v1.0.0 first stable release published.
- 2020-04-03: v1.1.2 added a view command for extracting a single kubeconfig.
- 2023-11-17: v2.0.0 release published.

### Related projects

- kconf's workflow is built around kubectl's default use of $HOME/.kube/config and the Kubernetes kubeconfig format.

### 来源

- <https://github.com/particledecay/kconf>
- <https://github.com/particledecay/kconf/releases>
- <https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/>


## 安全说明

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: ~/.kube/config

## Credential files

- Unix: ~/.kube/config
## 其他软件包管理器记录

- Nix - kconf: normalized package name match | nixpkgs package indexes: pkgs/by-name/kc/kconf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/kconf.yml](https://github.com/mxcl/pkgdb/blob/main/combined/kconf.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
