# Install tanka with Homebrew, apk, MacPorts, Nix, pacman, apt, dnf, zypper

Flexible, reusable and concise configuration for Kubernetes using Jsonnet. Version 0.37.5 via Homebrew; verified 2026-07-02.

## Install

```sh
sudo av install brew:tanka
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install tanka
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tanka
```

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

### Linux

- apk (92%):

```sh
sudo apk add tanka
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#tanka
```

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

- pacman (92%):

```sh
sudo pacman -S tanka
```

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

- Debian apt (92%):

```sh
sudo apt install tk
```

  Evidence: Debian stable package indexes: tk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install tk
```

  Evidence: Fedora Rawhide package metadata: tk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- zypper (92%):

```sh
sudo zypper install tk
```

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

## Package facts

- **Package key:** brew:tanka
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/tanka>
- **Version:** 0.37.5
- **Source summary:** Flexible, reusable and concise configuration for Kubernetes using Jsonnet
- **Homepage:** <https://tanka.dev>
- **Repository:** <https://github.com/grafana/tanka>
- **Upstream docs:** <https://tanka.dev/>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/grafana/tanka/archive/refs/tags/v0.37.5.tar.gz>
- **Last updated:** 2026-07-02T13:03:46Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- tk (cli)
- tk (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.37.5
- Package-manager updated: 2026-07-02
- Local data: ok
- Upstream repository: https://github.com/grafana/tanka
- Upstream latest detected: v0.37.5 (current)
## Project history and usage

Grafana Tanka is Grafana Labs' Jsonnet-powered Kubernetes configuration utility, shipped as the `tk` CLI. It is a package-manager-culture project because it turns Kubernetes YAML management into a reproducible local toolchain built around Jsonnet, Jsonnet Bundler, `kubectl`, and optional Helm support.

### Project history

The official repository begins on 2019-07-17 with an initial feature set, and the first observed release tag, v0.1.0, is dated 2019-07-31. The official site presents Tanka as a robust configuration utility for Kubernetes powered by Jsonnet, with reuse, libraries, diffing, and open-source Grafana ecosystem positioning as central themes.

### Adoption history

The installation docs describe Tanka as a single binary called `tk`, available through Homebrew on macOS, AUR packages on Arch Linux, GitHub release binaries, and Go installation. The docs also recommend Jsonnet Bundler because Tanka uses it by default, tying Tanka adoption to the wider Jsonnet package-management workflow.

### How it is used

Tanka projects organize Kubernetes configuration into environments containing `spec.json` and `main.jsonnet`, with dependencies tracked by Jsonnet Bundler files. The tutorial frames the workflow as replacing direct `kubectl` YAML deployment with Jsonnet-based parameterization, abstraction, environment separation, and reusable libraries.

### Why package nerds care

Tanka is significant for package nerds because it sits at the intersection of Kubernetes manifests and language-style dependency management. It made Jsonnet libraries, vendored dependencies, generated YAML, and `tk diff` part of a package-managed Kubernetes operator workflow, especially for Grafana-adjacent infrastructure.

### Timeline

- 2019-07-17: First commit in the official Git repository.
- 2019-07-31: First observed release tag, v0.1.0.
- 2026-06-23: Latest observed tag and Homebrew stable version are v0.37.4.

### Related projects

- Tanka is related to Kubernetes, Jsonnet, Jsonnet Bundler, Grafana jsonnet-libs, Helm, Kustomize support, and `kubectl`.

### Sources

- <https://formulae.brew.sh/api/formula/tanka.json>
- <https://github.com/grafana/tanka README>
- <https://github.com/grafana/tanka official Git history and tags>
- <https://tanka.dev/>
- <https://tanka.dev/install/>
- <https://tanka.dev/tutorial/overview/>


## 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: environments/<name>/spec.json, environments/<name>/main.jsonnet, jsonnetfile.json, jsonnetfile.lock.json, tkrc.yaml
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tanka
- **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 - tanka: normalized package name match | nixpkgs package indexes: pkgs/by-name/ta/tanka/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - tanka - 0.35.0-r6: normalized package name match | Alpine Linux edge package indexes: tanka from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Flexible, reusable and concise configuration for Kubernetes | https://tanka.dev
- pacman - tanka - 0.36.3-2: normalized package name match | Arch Linux sync databases: tanka from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Flexible, reusable and concise configuration for Kubernetes | https://github.com/grafana/tanka
- MacPorts - tanka: normalized package name match | MacPorts ports tree: sysutils/tanka/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- MacPorts - tk: installed executable or alias match | MacPorts ports tree: x11/tk/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - tk - 8.6.16: installed executable or alias match | Debian stable package indexes: tk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Toolkit for Tcl and X11 (default version) - windowing shell
- Nix - tk: installed executable or alias match | nixpkgs package indexes: tk from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - tk - 8.6.14build1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: tk from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Toolkit for Tcl and X11 (default version) - windowing shell
- apk - tk - 8.6.17-r1: installed executable or alias match | Alpine Linux edge package indexes: tk from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GUI toolkit for the Tcl scripting language | https://www.tcl-lang.org/
- apk - tk-dev - 8.6.17-r1: installed executable or alias match | Alpine Linux edge package indexes: tk-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GUI toolkit for the Tcl scripting language (development files) | https://www.tcl-lang.org/
- apk - tk-doc - 8.6.17-r1: installed executable or alias match | Alpine Linux edge package indexes: tk-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GUI toolkit for the Tcl scripting language (documentation) | https://www.tcl-lang.org/
- dnf - tk - 9.0.3-1.fc45: installed executable or alias match | Fedora Rawhide package metadata: tk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | The graphical toolkit for the Tcl scripting language | http://tcl.sourceforge.net
- dnf - tk-devel - 9.0.3-1.fc45: installed executable or alias match | Fedora Rawhide package metadata: tk-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Tk graphical toolkit development files | http://tcl.sourceforge.net
- pacman - tk - 8.6.16-1: installed executable or alias match | Arch Linux sync databases: tk from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A windowing toolkit for use with tcl | http://tcl.sourceforge.net/
- zypper - tk - 8.6.18-1.1: installed executable or alias match | openSUSE Tumbleweed package metadata: tk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Graphical User Interface Toolkit for Tcl | http://www.tcl.tk
- zypper - tk-32bit - 8.6.18-1.1: installed executable or alias match | openSUSE Tumbleweed package metadata: tk-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Graphical User Interface Toolkit for Tcl | http://www.tcl.tk


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure 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.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing 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.
- [kubecfg](https://www.automicvault.com/pkg/brew/kubecfg/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration-management, jsonnet, kubernetes.
- [talm](https://www.automicvault.com/pkg/brew/talm/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration-management, gitops, kubernetes.
- [cozyhr](https://www.automicvault.com/pkg/brew/cozyhr/) - Shares av.db curated category or tags: cli, cloud-infrastructure, gitops, kubernetes.
- [fleet-cli](https://www.automicvault.com/pkg/brew/fleet-cli/) - Shares av.db curated category or tags: cli, cloud-infrastructure, gitops, kubernetes.
- [glasskube](https://www.automicvault.com/pkg/brew/glasskube/) - Shares av.db curated category or tags: cli, cloud-infrastructure, gitops, kubernetes.
- [kconf](https://www.automicvault.com/pkg/brew/kconf/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration, kubernetes.
- [kubetrim](https://www.automicvault.com/pkg/brew/kubetrim/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration, kubernetes.
- [nelm](https://www.automicvault.com/pkg/brew/nelm/) - Shares av.db curated category or tags: cli, cloud-infrastructure, gitops, kubernetes.
- [qbec](https://www.automicvault.com/pkg/brew/qbec/) - Local package facts share a topical domain. Shared terms: cli, cloud, cloud-infrastructure, configuration, configuration-management.

## Combined YAML source

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