# Install bkt with Homebrew, apk, apt, Nix

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

## Package facts

- **Package key:** brew:bkt
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/bkt>
- **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>
- **Upstream docs:** <https://docs.rs/bkt/latest/bkt>
- **License:** MIT
- **Source archive:** <https://github.com/dimo414/bkt/archive/refs/tags/0.8.2.tar.gz>
- **Generated:** 2026-07-25T07:20:51+00:00

## Executables

- bkt (cli)
- bkt (alias)

## Build dependencies

- rust

## Install behavior

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

## Freshness

- Page generated: 2026-07-25
- Package-manager version: 0.8.2
- Local data: ok
- Upstream repository: https://github.com/dimo414/bkt
- Upstream latest detected: 0.8.2 (current)
- info: No package-manager update timestamp was available.
## 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

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** bkt
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [bottom](https://www.automicvault.com/pkg/brew/bottom/) - Shares av.db curated category or tags: cli, rust, system.
- [brush](https://www.automicvault.com/pkg/brew/brush/) - Shares av.db curated category or tags: cli, rust, system.
- [comtrya](https://www.automicvault.com/pkg/brew/comtrya/) - Shares av.db curated category or tags: cli, rust, system.
- [crabz](https://www.automicvault.com/pkg/brew/crabz/) - Shares av.db curated category or tags: cli, rust, system.
- [cyme](https://www.automicvault.com/pkg/brew/cyme/) - Shares av.db curated category or tags: cli, rust, system.
- [czkawka](https://www.automicvault.com/pkg/brew/czkawka/) - Shares av.db curated category or tags: cli, rust, system.
- [ddh](https://www.automicvault.com/pkg/brew/ddh/) - Shares av.db curated category or tags: cli, rust, system.
- [diskus](https://www.automicvault.com/pkg/brew/diskus/) - Shares av.db curated category or tags: cli, rust, system.
- [lsd](https://www.automicvault.com/pkg/brew/lsd/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, output, rust, system.
- [nuls](https://www.automicvault.com/pkg/brew/nuls/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, output, rust, system.

## Combined YAML source

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