# 使用 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
- **版本:** 0.5.3
- **来源摘要:** Top-like tool for your Kubernetes clusters
- **主页:** <https://ktop.app/>
- **仓库:** <https://github.com/vladimirvivien/ktop>
- **最后更新:** 2026-07-27T21:58:42+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ktop (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.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
## 其他软件包管理器记录

- 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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
