# Installer k9s avec Homebrew, apk, chocolatey, dnf, MacPorts, Nix, pacman, zypper, scoop, winget

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de k9s pour les workflows d'agents IA.

## installation

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

## Réponse sur la sécurité des agents

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

- **Accès aux identifiants:** Reads kubeconfig, cluster tokens, and pod/secret views allowed by the current context.
- **Modification distante:** Can delete, edit, scale, and exec into Kubernetes resources.
- **Risque de publication ou d'artéfact:** Can change live workloads and configuration.
- **Contrôle recommandé:** Gate launch in privileged contexts and commands that mutate resources.
- **Conseils d'utilisation par les agents:** Use read-only contexts for agents; require approval before interactive cluster mutation.

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install k9s
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install k9s
```

  Preuve: 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
```

  Preuve: 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
```

  Preuve: 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
```

  Preuve: 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
```

  Preuve: 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
```

  Preuve: 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
```

  Preuve: 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
```

  Preuve: 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
```

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

## Faits du paquet

- **Clé du paquet:** brew:k9s
- **Gestionnaire de paquets:** Homebrew
- **Version:** 0.51.0
- **Résumé source:** Kubernetes CLI To Manage Your Clusters In Style!
- **Page d'accueil:** <https://k9scli.io/>
- **Dépôt:** <https://github.com/derailed/k9s>
- **Dernière mise à jour:** 2026-07-27T21:58:35+02:00
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- k9s (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 0.51.0
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

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

### Sources

- <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/>


## Notes de sécurité

infrastructure mutation or orchestration signal.

- **Risque Geiger:** orange / moyen
- 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
## Autres enregistrements de gestionnaires de paquets

- 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)


## Sources

- 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
