# Install stern with Homebrew, apk, chocolatey, MacPorts, Nix, pacman, scoop, winget, zypper

Tail multiple Kubernetes pods & their containers. Version 1.34.0 via Homebrew; verified 2026-05-02.

## Install

```sh
sudo av install brew:stern
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install stern
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install stern
```

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

### Linux

- apk (92%):

```sh
sudo apk add stern
```

  Evidence: Alpine Linux edge package indexes: stern from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#stern
```

  Evidence: nixpkgs package indexes: pkgs/by-name/st/stern/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S stern
```

  Evidence: Arch Linux sync databases: stern from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install stern
```

  Evidence: openSUSE Tumbleweed package metadata: stern from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install stern
```

  Evidence: Chocolatey community package catalog: stern from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='6.5836','capture'

- Scoop (92%):

```sh
scoop install main/stern
```

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

- winget (92%):

```sh
winget install --id stern.stern -e
```

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

## Package facts

- **Package key:** brew:stern
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/stern>
- **Version:** 1.34.0
- **Source summary:** Tail multiple Kubernetes pods & their containers
- **Homepage:** <https://github.com/stern/stern>
- **Repository:** <https://github.com/stern/stern>
- **Upstream docs:** <https://github.com/stern/stern#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/stern/stern/archive/refs/tags/v1.34.0.tar.gz>
- **Last updated:** 2026-05-02T15:41:29Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- stern (cli)
- stern (alias)

## 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: 1.34.0
- Package-manager updated: 2026-05-02
- Local data: ok
- Upstream repository: https://github.com/stern/stern
- Upstream latest detected: v1.34.0 (current)
## Project history and usage

stern is a Kubernetes log-tailing CLI for following multiple pods and containers at once. In package-manager culture it is the small, sharp alternative to repeating kubectl logs commands while debugging workloads.

### Project history

The current stern project identifies itself as a friendly fork of the discontinued wercker/stern project. Its GitHub repository was created in 2020, and the README keeps the original purpose visible: tail matching Kubernetes pods, colorize output, and automatically follow pods as they appear or disappear.

### Adoption history

stern is distributed through direct GitHub releases, Go install, asdf, Homebrew, Krew, and WinGet according to its README, while the input package metadata also lists Linux and Windows package managers. That spread reflects its role as a routine Kubernetes operator tool rather than a single-platform utility.

### How it is used

Typical use is interactive cluster debugging: users pass a pod regex or resource name such as deployment/nginx, optionally select namespaces or containers, and stream logs with colored pod/container labels. Its config file lets users set default flag values such as tail count, concurrency, timestamps, and colors.

### Why package nerds care

Package maintainers care about stern because it is a classic CLI that wraps a noisy platform workflow into one executable, has shell-completion and config-file behavior, and is also a kubectl-plugin ecosystem citizen through Krew.

### Timeline

- 2020: The current stern/stern GitHub repository was created as a fork of discontinued wercker/stern.
- 2020s: The README documents installation through GitHub releases, Go install, asdf, Homebrew, Krew, and WinGet.
- 2020s: stern standardizes on ~/.config/stern/config.yaml as the default config file path.

### Related projects

- wercker/stern is the discontinued upstream named by the current fork.
- kubectl and Kubernetes client-go are the surrounding command-line ecosystem.
- Krew packages stern as a kubectl plugin.

### Sources

- <https://api.github.com/repos/stern/stern>
- <https://github.com/stern/stern#readme>
- source_facts.package-manager


## Security Notes

infrastructure mutation or orchestration signal.

- **Geiger risk:** orange / medium
- 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

- Unix: ~/.config/stern/config.yaml
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** stern
- **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 - stern: normalized package name match | nixpkgs package indexes: pkgs/by-name/st/stern/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - stern - 1.33.0-r6: normalized package name match | Alpine Linux edge package indexes: stern from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Multi pod and container log tailing for Kubernetes | https://github.com/stern/stern
- apk - stern-bash-completion - 1.33.0-r6: normalized package name match | Alpine Linux edge package indexes: stern-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for stern | https://github.com/stern/stern
- apk - stern-fish-completion - 1.33.0-r6: normalized package name match | Alpine Linux edge package indexes: stern-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fish completions for stern | https://github.com/stern/stern
- apk - stern-zsh-completion - 1.33.0-r6: normalized package name match | Alpine Linux edge package indexes: stern-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Zsh completions for stern | https://github.com/stern/stern
- pacman - stern - 1.34.0-1: normalized package name match | Arch Linux sync databases: stern from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Multi pod and container log tailing for Kubernetes | https://github.com/stern/stern
- zypper - stern - 1.34.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: stern from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Multi pod and container log tailing for Kubernetes | https://github.com/stern/stern
- MacPorts - stern: normalized package name match | MacPorts ports tree: sysutils/stern/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - stern: normalized package name match | Chocolatey community package catalog: stern from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='6.5836','capture'
- Scoop - main/stern: normalized package name match | Scoop official bucket manifest trees: bucket/stern.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - stern.stern: normalized package name match | Windows Package Manager source index: stern.stern from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control 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.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [alp](https://www.automicvault.com/pkg/brew/alp/) - Shares av.db curated category or tags: cli, developer-tools, logs, observability.
- [grafana-alloy](https://www.automicvault.com/pkg/brew/grafana-alloy/) - Shares av.db curated category or tags: cli, developer-tools, logs, observability.
- [humanlog](https://www.automicvault.com/pkg/brew/humanlog/) - Shares av.db curated category or tags: cli, developer-tools, logs, observability.
- [analog](https://www.automicvault.com/pkg/brew/analog/) - Shares av.db curated category or tags: cli, developer-tools, logs, observability.
- [angle-grinder](https://www.automicvault.com/pkg/brew/angle-grinder/) - Shares av.db curated category or tags: cli, developer-tools, logs, observability.
- [grafana](https://www.automicvault.com/pkg/brew/grafana/) - Shares av.db curated category or tags: cli, developer-tools, observability.
- [grafanactl](https://www.automicvault.com/pkg/brew/grafanactl/) - Shares av.db curated category or tags: cli, developer-tools, observability.
- [lttng-ust](https://www.automicvault.com/pkg/brew/lttng-ust/) - Shares av.db curated category or tags: cli, developer-tools, observability.
- [newrelic-cli](https://www.automicvault.com/pkg/brew/newrelic-cli/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, observability.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
