# 使用 Homebrew, Nix, zypper 安装 ktop

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

## 安装

```sh
sudo av install brew:ktop
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ktop
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ktop
```

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

- zypper (92%):

```sh
sudo zypper install ktop
```

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

## 软件包事实

- **软件包键:** brew:ktop
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ktop>
- **版本:** 0.5.3
- **来源摘要:** Top-like tool for your Kubernetes clusters
- **主页:** <https://ktop.app/>
- **仓库:** <https://github.com/vladimirvivien/ktop>
- **上游文档:** <https://ktop.app/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/vladimirvivien/ktop/archive/refs/tags/v0.5.3.tar.gz>
- **最后更新:** 2026-07-27T21:58:42+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ktop (cli)
- ktop (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.5.3
- 管理器更新时间: 2026-07-27
- 本地数据: OK
- 上游仓库: https://github.com/vladimirvivien/ktop
- 检测到的最新版本: v0.5.3 (当前)
## 项目历史与用法

ktop is a terminal dashboard for Kubernetes clusters, explicitly modeled after Unix top-style tools. It continuously displays node, pod, and container metrics and lets users drill from cluster overview into workload details and logs.

### 项目历史

The GitHub repository was created on 2016-12-29. The project documentation describes ktop as a local, single-binary tool that connects through the Kubernetes API using the same kubeconfig credentials that kubectl uses.

The project evolved around a specific gap in the Kubernetes CLI experience: `kubectl top` gives a snapshot, while ktop keeps an interactive terminal display open and supports hierarchical navigation through nodes, pods, containers, and logs.

### 采用历史

ktop is distributed through Kubernetes-native and general package-manager channels: the documentation lists installation as a kubectl plugin through krew, through Homebrew, through `go install`, through Docker, and through GitHub release binaries.

Its adoption path is tied to operators and developers who want live cluster inspection without installing agents or server-side components.

### 使用方式

ktop uses `$KUBECONFIG` or `~/.kube/config`, supports context and namespace selection, and can use Prometheus scraping, Kubernetes Metrics Server, or a no-metrics fallback that shows resource requests and limits.

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

ktop is package-nerd notable as a Kubernetes-era reinterpretation of a classic Unix admin interface. It also shows how kubectl plugins, Go single binaries, Homebrew formulae, and container images can all distribute the same cluster-ops tool.

### 时间线

- 2016-12-29: vladimirvivien/ktop repository created on GitHub.
- 2026-06-24: GitHub repository metadata recorded ongoing updates to the project.
- 2026: Project documentation described krew, Homebrew, Docker, Go install, and binary-release installation paths.

### Related projects

- ktop is related to kubectl top, the krew plugin manager, Kubernetes Metrics Server, Prometheus, cAdvisor/kubelet metrics endpoints, and other terminal cluster dashboards.

### 来源

- <https://api.github.com/repos/vladimirvivien/ktop>
- <https://github.com/vladimirvivien/ktop>
- <https://raw.githubusercontent.com/vladimirvivien/ktop/master/README.md>
- <https://vladimirvivien.github.io/ktop/>
- <https://vladimirvivien.github.io/ktop/guide/>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## 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.


## Credential files

- Unix: $KUBECONFIG, ~/.kube/config
## 源数据库详情

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

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

- Nix - ktop: normalized package name match | nixpkgs package indexes: pkgs/by-name/kt/ktop/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - ktop - 0.5.3-1.7: normalized package name match | openSUSE Tumbleweed package metadata: ktop from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A top-like tool for your Kubernetes clusters | https://github.com/vladimirvivien/ktop


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow 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.
- [prometheus](https://pkg.so/zh-hans/brew/prometheus/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, metrics, monitoring.
- [kubetui](https://pkg.so/zh-hans/brew/kubetui/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubernetes, monitoring.
- [kubesess](https://pkg.so/zh-hans/brew/kubesess/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubectl-plugin, kubernetes.
- [kubectl-klock](https://pkg.so/zh-hans/brew/kubectl-klock/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubectl-plugin, kubernetes.
- [kubernetes-cli](https://pkg.so/zh-hans/brew/kubernetes-cli/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubernetes.
- [k9s](https://pkg.so/zh-hans/brew/k9s/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubernetes.
- [k3d](https://pkg.so/zh-hans/brew/k3d/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubernetes.
- [ctlptl](https://pkg.so/zh-hans/brew/ctlptl/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubernetes.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
