# 使用 Homebrew, apt, MacPorts, Nix, zypper, scoop, winget 安装 kubecolor

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

## 安装

```sh
sudo av install brew:kubecolor
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kubecolor
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install kubecolor
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install kubecolor
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#kubecolor
```

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

- zypper (92%):

```sh
sudo zypper install kubecolor
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/kubecolor
```

  证据: Scoop official bucket manifest trees: bucket/kubecolor.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Kubecolor.kubecolor -e
```

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

## 软件包事实

- **软件包键:** brew:kubecolor
- **软件包管理器:** Homebrew
- **版本:** 0.6.0
- **来源摘要:** Colorize your kubectl output
- **主页:** <https://kubecolor.github.io/>
- **仓库:** <https://github.com/kubecolor/kubecolor>
- **最后更新:** 2026-07-27T21:58:43+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- kubecolor (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

kubecolor is a kubectl wrapper that runs kubectl and colorizes its output. Its aim is intentionally narrow: make common Kubernetes terminal output easier to scan while preserving kubectl's command shape.

### 项目历史

The kubecolor/kubecolor repository was created on 2022-09-23, and the first GitHub release in that repository's releases feed, v0.0.21, was published on 2022-09-28. The README states that this project is a heavily modified version of the original kubecolor archived at hidetatz/kubecolor.

The project grew from a simple colorizing wrapper into a maintained CLI with documentation, custom themes, autocompletion, dynamic TTY detection, and colorblind-adjusted themes.

### 采用历史

kubecolor's adoption follows a terminal-tool route: users alias kubectl to kubecolor, or use the KUBECTL_COMMAND environment variable to wrap compatible commands such as oc. Its official site presents it as compatible with any kubectl version because it delegates command execution to kubectl.

### 使用方式

A common setup is alias kubectl="kubecolor", after which ordinary kubectl commands produce colorized output. The tool detects non-interactive output and can leave plaintext for scripts and pipes, avoiding a common failure mode for terminal color wrappers.

Because kubecolor is a visual wrapper rather than a Kubernetes API client, it does not manage configuration or credentials itself; it depends on kubectl and the user's existing kubeconfig setup.

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

kubecolor is the package-manager version of a shell customization: small, optional, and immediately visible. It is the kind of tool that spreads through dotfiles, Homebrew installs, and team recommendations because it improves the default Kubernetes CLI experience without changing Kubernetes itself.

Its package interest also comes from restraint. Instead of building a replacement client, it composes with kubectl, which keeps the binary easy to reason about and easy to remove if a workflow needs plain output.

### 时间线

- 2022-09-23: kubecolor/kubecolor GitHub repository created.
- 2022-09-28: GitHub release v0.0.21 published.
- 2023-12-15: GitHub release v0.1.0 published.
- 2026-04-12: GitHub release v0.6.0 published.

### Related projects

- kubectl is the command kubecolor wraps.
- hidetatz/kubecolor is the archived original project named by the README.
- OpenShift's oc command can be wrapped through KUBECTL_COMMAND according to the README.
- kubecolor.github.io hosts the project documentation.

### 来源

- <https://api.github.com/repos/kubecolor/kubecolor>
- <https://api.github.com/repos/kubecolor/kubecolor/releases>
- <https://formulae.brew.sh/formula/kubecolor>
- <https://github.com/hidetatz/kubecolor>
- <https://github.com/kubecolor/kubecolor>
- <https://kubecolor.github.io/>
- <https://kubecolor.github.io/usage/getting-started>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - kubecolor - 0.0.20-2+b17: normalized package name match | Debian stable package indexes: kubecolor from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | colorizes kubectl output | https://github.com/dty1er/kubecolor
- Nix - kubecolor: normalized package name match | nixpkgs package indexes: pkgs/by-name/ku/kubecolor/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - kubecolor - 0.0.20-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: kubecolor from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | colorizes kubectl output | https://github.com/dty1er/kubecolor
- zypper - kubecolor - 0.6.0-1.4: normalized package name match | openSUSE Tumbleweed package metadata: kubecolor from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Colorize your kubectl output | https://kubecolor.github.io/
- MacPorts - kubecolor: normalized package name match | MacPorts ports tree: devel/kubecolor/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/kubecolor: normalized package name match | Scoop official bucket manifest trees: bucket/kubecolor.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Kubecolor.kubecolor: normalized package name match | Windows Package Manager source index: Kubecolor.kubecolor from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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