# Install krew with Homebrew, MacPorts, Nix, pacman, scoop, winget, apk

Package manager for kubectl plugins. Version 0.5.0 via Homebrew; verified 2026-06-22.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install krew
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install krew
```

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

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

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

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

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

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

## Package facts

- **Package key:** brew:krew
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/krew>
- **Version:** 0.5.0
- **Source summary:** Package manager for kubectl plugins
- **Homepage:** <https://sigs.k8s.io/krew/>
- **Repository:** <https://github.com/kubernetes-sigs/krew>
- **Upstream docs:** <https://krew.sigs.k8s.io/docs>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/kubernetes-sigs/krew.git>
- **Last updated:** 2026-06-22T14:03:53-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- kubectl-krew (cli)
- kubectl-krew (alias)

## Dependencies

- kubernetes-cli

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.5.0
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/kubernetes-sigs/krew
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

infrastructure mutation or orchestration signal.

- **Geiger risk:** orange / medium
- infrastructure mutation or orchestration signal

## Source Database Details

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

## Other Package-Manager Records

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


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [kubernetes-cli](https://www.automicvault.com/pkg/brew/kubernetes-cli/) - Runtime dependency declared by Homebrew.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [kubecm](https://www.automicvault.com/pkg/brew/kubecm/) - Shares av.db curated category or tags: cli, developer-tools, kubectl, kubernetes.
- [kubecolor](https://www.automicvault.com/pkg/brew/kubecolor/) - Shares av.db curated category or tags: cli, developer-tools, kubectl, kubernetes.
- [kubectl-ai](https://www.automicvault.com/pkg/brew/kubectl-ai/) - Shares av.db curated category or tags: cli, developer-tools, kubectl, kubernetes.
- [kubectl-tree](https://www.automicvault.com/pkg/brew/kubectl-tree/) - Shares av.db curated category or tags: cli, developer-tools, kubectl, kubernetes.
- [kubectx](https://www.automicvault.com/pkg/brew/kubectx/) - Shares av.db curated category or tags: cli, developer-tools, kubectl, kubernetes.
- [kubelogin](https://www.automicvault.com/pkg/brew/kubelogin/) - Shares av.db curated category or tags: cli, developer-tools, kubectl, kubernetes.
- [kubergrunt](https://www.automicvault.com/pkg/brew/kubergrunt/) - Shares av.db curated category or tags: cli, developer-tools, kubectl, kubernetes.

## Combined YAML source

View the package source record on GitHub. [combined/krew.yml](https://github.com/automic-vault/db/blob/main/combined/krew.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
