# krew を Homebrew, MacPorts, Nix, pacman, scoop, winget, apk でインストール

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

## インストール

```sh
sudo av install brew:krew
```

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

### macOS

- Homebrew (100%):

```sh
brew install krew
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install krew
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#krew
```

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

- pacman (92%):

```sh
sudo pacman -S krew
```

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

- apk (92%):

```sh
sudo apk add kubectl-krew
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/krew
```

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

- winget (92%):

```sh
winget install --id Kubernetes.krew -e
```

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

## パッケージ情報

- **パッケージキー:** brew:krew
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.5.0
- **ソース概要:** Package manager for kubectl plugins
- **ホームページ:** <https://sigs.k8s.io/krew/>
- **リポジトリ:** <https://github.com/kubernetes-sigs/krew>
- **最終更新:** 2026-06-22T14:03:53-07:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- kubectl-krew (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

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

Krew is the Kubernetes SIG CLI package manager for kubectl plugins. It is package-nerd significant because it brings a Homebrew-like install, search, update, and index model inside the kubectl plugin ecosystem.

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

The krew repository was created on 2018-07-12, and the first v0.1.0-alpha.1 release was published on 2018-07-30. The project README describes Krew as a package manager for kubectl plugins that helps users discover, install, and manage plugins, and helps plugin developers package and distribute plugins across platforms.

Krew exists because kubectl plugins are ordinary executables named with the kubectl- prefix and found on PATH. Kubernetes documentation describes that plugin mechanism and identifies Krew as a SIG CLI-maintained way to discover and install community plugins.

### 採用の歴史

Krew became the de facto index-driven distribution channel for kubectl plugins because it solved discovery and update management for a plugin system that otherwise only specifies executable naming. The Kubernetes blog recommended Krew in 2020 for plugin installation experience and discoverability.

The Krew README says that more than 200 kubectl plugins were available through Krew in the documentation state used for this 2026-07-01 batch, showing a mature plugin catalog rather than a single-tool installer.

### 使われ方

Users install Krew as the kubectl-krew plugin, add its bin directory to PATH, and then run commands such as kubectl krew search, kubectl krew install, kubectl krew list, kubectl krew update, and kubectl krew upgrade.

Plugin authors package manifests in the krew-index repository so their kubectl plugins can be discovered and installed consistently on Linux, macOS, and Windows.

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

Krew is a package manager distributed as a plugin for the tool whose plugins it manages, which makes it a neat recursive packaging artifact. It also codifies an index and lifecycle around kubectl plugins without changing kubectl's intentionally simple PATH-based plugin contract.

### タイムライン

- 2018-07-12: The kubernetes-sigs/krew repository was created.
- 2018-07-30: Krew v0.1.0-alpha.1 was released.
- 2020-02-28: The Kubernetes blog recommended Krew for kubectl plugin distribution and discoverability.
- 2026-02-26: Krew v0.5.0 was released.

### Related projects

- kubectl is the host CLI whose plugin convention Krew uses. krew-index is the companion plugin index. Kubernetes SIG CLI is the community home for the project.

### ソース

- <https://github.com/kubernetes-sigs/krew>
- <https://github.com/kubernetes-sigs/krew-index>
- <https://github.com/kubernetes-sigs/krew/releases/tag/v0.1.0-alpha.1>
- <https://github.com/kubernetes-sigs/krew/releases/tag/v0.5.0>
- <https://krew.sigs.k8s.io/>
- <https://krew.sigs.k8s.io/docs>
- <https://kubernetes.io/blog/2020/02/28/bring-your-ideas-to-the-world-with-kubectl-plugins/>
- <https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/>


## セキュリティノート

infrastructure mutation or orchestration signal.

- **Geiger リスク:** orange / 中
- infrastructure mutation or orchestration signal

## 他のパッケージマネージャ記録

- Nix - krew: normalized package name match | nixpkgs package indexes: pkgs/by-name/kr/krew/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - krew - 0.5.0-1: normalized package name match | Arch Linux sync databases: krew from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Find and install kubectl plugins | https://github.com/kubernetes-sigs/krew
- MacPorts - krew: normalized package name match | MacPorts ports tree: sysutils/krew/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/krew: normalized package name match | Scoop official bucket manifest trees: bucket/krew.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Kubernetes.krew: normalized package name match | Windows Package Manager source index: Kubernetes.krew from https://cdn.winget.microsoft.com/cache/source.msix
- apk - kubectl-krew - 0.5.0-r3: installed executable or alias match | Alpine Linux edge package indexes: kubectl-krew from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Find and install kubectl plugins | https://krew.sigs.k8s.io/


## Combined YAML source

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