# k9s を Homebrew, apk, chocolatey, dnf, MacPorts, Nix, pacman, zypper, scoop, winget でインストール

k9s のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:k9s
```

## エージェント安全性の回答

k9s is an interactive Kubernetes UI with cluster read and mutation capability.

- **認証情報アクセス:** Reads kubeconfig, cluster tokens, and pod/secret views allowed by the current context.
- **リモート変更:** Can delete, edit, scale, and exec into Kubernetes resources.
- **公開/成果物リスク:** Can change live workloads and configuration.
- **推奨コントロール:** Gate launch in privileged contexts and commands that mutate resources.
- **エージェント利用ガイダンス:** Use read-only contexts for agents; require approval before interactive cluster mutation.

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install k9s
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install k9s
```

  証拠: MacPorts ports tree: sysutils/k9s/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add k9s
```

  証拠: Alpine Linux edge package indexes: k9s from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install k9s
```

  証拠: Fedora Rawhide package metadata: k9s from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#k9s
```

  証拠: nixpkgs package indexes: pkgs/by-name/k9/k9s/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S k9s
```

  証拠: Arch Linux sync databases: k9s from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install k9s
```

  証拠: openSUSE Tumbleweed package metadata: k9s from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install k9s
```

  証拠: Chocolatey community package catalog: k9s from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','java7u13x86'

- Scoop (92%):

```sh
scoop install main/k9s
```

  証拠: Scoop official bucket manifest trees: bucket/k9s.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Derailed.k9s -e
```

  証拠: Windows Package Manager source index: Derailed.k9s from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:k9s
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.51.0
- **ソース概要:** Kubernetes CLI To Manage Your Clusters In Style!
- **ホームページ:** <https://k9scli.io/>
- **リポジトリ:** <https://github.com/derailed/k9s>
- **最終更新:** 2026-07-27T21:58:35+02:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- k9s (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 0.51.0
## プロジェクトの歴史と使われ方

K9s is a terminal user interface for Kubernetes that turns cluster navigation, inspection, and common operations into a keyboard-driven local app. It became one of the recognizable post-kubectl tools for operators who wanted a faster view of resources without moving into a full graphical dashboard.

### プロジェクトの歴史

The derailed/k9s repository was created in January 2019. The project describes K9s as a Kubernetes CLI for managing clusters in style and says it provides a terminal UI that continually watches Kubernetes resources for changes.

K9s evolved around the idea that many Kubernetes workflows are repetitive inspection loops: list pods, jump to logs, describe resources, edit manifests, switch namespaces, and watch status. Its documentation grew into topics for installation, configuration, skins, plugins, benchmarks, and operational commands.

### 採用の歴史

K9s spread through the normal cross-platform CLI packaging routes. Its official install documentation lists Homebrew and MacPorts on macOS, Linuxbrew and Pacman on Linux, and Scoop or Chocolatey on Windows, which made it easy to add to existing Kubernetes workstations.

The project reached a scale visible in repository metadata: tens of thousands of GitHub stars and thousands of forks by July 2026. That level of attention is unusual for a single-purpose terminal UI and reflects the centrality of Kubernetes day-to-day operations.

### 使われ方

K9s is used as an interactive cluster console. Operators open it against a kubeconfig context, watch resource tables update, drill into pods and workloads, tail logs, and trigger common commands without repeatedly composing kubectl invocations.

It complements rather than replaces kubectl: kubectl remains the scriptable primitive, while K9s is the fast human interface for scanning, debugging, and moving around clusters.

### パッケージ好きにとっての重要性

K9s is package-nerd catnip because it packages a large Kubernetes workflow into one local binary with a memorable name, broad package-manager coverage, and obvious daily utility. It is also a marker of the TUI renaissance in infrastructure tooling, alongside projects that use terminal layouts as serious operational interfaces.

Its configuration paths differ across Linux, macOS, and Windows, which makes it a useful example for package databases that track real application state rather than only executable names.

### タイムライン

- 2019-01: Public GitHub repository created.
- 2021: The release stream had reached the v0.24 and v0.25 series.
- 2026-07-01: Repository metadata showed more than 34,000 stars and more than 2,200 forks.

### Related projects

- K9s sits beside kubectl, kubectx, kubens, Stern, Lens, OpenLens, Helm, and K8sGPT in the Kubernetes operator toolbox. Its closest conceptual relatives are terminal dashboards and resource browsers rather than deployment or package managers.

### ソース

- <https://api.github.com/repos/derailed/k9s>
- <https://github.com/derailed/k9s>
- <https://github.com/derailed/k9s/releases>
- <https://k9scli.io/>
- <https://k9scli.io/topics>
- <https://k9scli.io/topics/install/>


## セキュリティノート

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.


## Configuration files

- Linux: $XDG_CONFIG_HOME/k9s/config.yaml, ~/.config/k9s/config.yaml
- macOS: ~/Library/Application Support/k9s/config.yaml
- Windows: %LOCALAPPDATA%\k9s\config.yaml
## 他のパッケージマネージャ記録

- Nix - k9s: normalized package name match | nixpkgs package indexes: pkgs/by-name/k9/k9s/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - k9s - 0.51.0-r1: normalized package name match | Alpine Linux edge package indexes: k9s from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Kubernetes TUI | https://k9scli.io
- apk - k9s-bash-completion - 0.51.0-r1: normalized package name match | Alpine Linux edge package indexes: k9s-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for k9s | https://k9scli.io
- apk - k9s-fish-completion - 0.51.0-r1: normalized package name match | Alpine Linux edge package indexes: k9s-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for k9s | https://k9scli.io
- apk - k9s-zsh-completion - 0.51.0-r1: normalized package name match | Alpine Linux edge package indexes: k9s-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for k9s | https://k9scli.io
- dnf - k9s - 0.51.0-3.fc45: normalized package name match | Fedora Rawhide package metadata: k9s from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Kubernetes CLI To Manage Your Clusters In Style | https://github.com/derailed/k9s
- pacman - k9s - 0.51.0-1: normalized package name match | Arch Linux sync databases: k9s from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | TUI for managing Kubernetes clusters and pods | https://github.com/derailed/k9s
- zypper - k9s - 0.51.0-1.4: normalized package name match | openSUSE Tumbleweed package metadata: k9s from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Curses based terminal UI for Kubernetes clusters | https://github.com/derailed/k9s
- MacPorts - k9s: normalized package name match | MacPorts ports tree: sysutils/k9s/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - k9s: normalized package name match | Chocolatey community package catalog: k9s from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','java7u13x86'
- Scoop - main/k9s: normalized package name match | Scoop official bucket manifest trees: bucket/k9s.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Derailed.k9s: normalized package name match | Windows Package Manager source index: Derailed.k9s from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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