# Install bkt with Homebrew, apk, apt, Nix, winget

CLI utility for caching the output of subprocesses. Version 0.8.2 via Homebrew; verified from local package data. Also installable with debian: sudo apt install bkt.

## Install

```sh
sudo av install brew:bkt
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install bkt
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add bkt
```

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

- Debian apt (92%):

```sh
sudo apt install bkt
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#bkt
```

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

### Windows

- winget (92%):

```sh
winget install --id AvivSinai.Bitbucket-CLI -e
```

  Evidence: Windows Package Manager source index: AvivSinai.Bitbucket-CLI from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:bkt
- **Package manager:** Homebrew
- **Version:** 0.8.2
- **Source summary:** CLI utility for caching the output of subprocesses
- **Homepage:** <https://github.com/dimo414/bkt>
- **Repository:** <https://github.com/dimo414/bkt>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- bkt (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.8.2
## Project history and usage

bkt is a Rust CLI and library for caching subprocess invocations. It is a small systems utility for shell prompts, fuzzy finders, polling scripts, and other workflows where repeated command output can be reused.

### Project history

The repository and crates.io package appeared in 2021. The README says bkt is pronounced 'bucket', is inspired by bash-cache, and wraps expensive process invocations so callers can reuse recent outputs without adding caching logic to their own programs.

### Adoption history

bkt is distributed as a Rust crate, GitHub release binary, and Unix package through Homebrew, Debian/Ubuntu, Alpine, and Nix according to the supplied package facts. The README also tracks package-manager support and links Repology status.

### How it is used

A typical invocation prefixes a command with bkt and a TTL, such as bkt --ttl=1m -- date. bkt caches stdout, stderr, and exit status, with options for stale refresh, working-directory and environment-sensitive keys, file modification checks, scopes, failure handling, and cache directory selection.

### Why package nerds care

bkt matters to package nerds because it turns a recurring shell pattern into one binary with well-documented cache semantics. It is the kind of low-level CLI that quietly improves prompts and scripts without forcing every project to grow its own memoization layer.

### Timeline

- 2021: bkt repository and crate are created.
- 2021: The README documents bkt as inspired by bash-cache.
- 2020s: bkt gains package-manager coverage across Homebrew, Debian/Ubuntu, Alpine, and Nix.
- 2020s: GitHub releases provide precompiled binaries starting with 0.5.

### Related projects

- bkt is directly related to bash-cache, which the README names as inspiration.
- It complements shell tools such as fzf by caching expensive commands used in interactive interfaces.

### Sources

- <https://crates.io/crates/bkt>
- <https://docs.rs/bkt/latest/bkt>
- <https://github.com/dimo414/bkt#readme>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Other Package-Manager Records

- Debian apt - bkt - 0.6.1-2+b8: normalized package name match | Debian stable package indexes: bkt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | CLI and Rust library for caching subprocess invocations | https://bkt.rs/
- Nix - bkt: normalized package name match | nixpkgs package indexes: pkgs/by-name/bk/bkt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - bkt - 0.6.1-2: normalized package name match | Ubuntu 24.04 LTS package indexes: bkt from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | CLI and Rust library for caching subprocess invocations | https://bkt.rs/
- apk - bkt - 0.8.0-r0: normalized package name match | Alpine Linux edge package indexes: bkt from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | A subprocess caching utility | https://www.bkt.rs/
- apk - bkt-doc - 0.8.0-r0: normalized package name match | Alpine Linux edge package indexes: bkt-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | A subprocess caching utility (documentation) | https://www.bkt.rs/
- winget - AvivSinai.Bitbucket-CLI: normalized package name match | Windows Package Manager source index: AvivSinai.Bitbucket-CLI from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/bkt.yml](https://github.com/mxcl/pkgdb/blob/main/combined/bkt.yml)


## Sources

- 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
