Skip to content
Oeiuwq Faith Blog OpenSource Porfolio

lucasgelfond/zerobrew

A 5-20x faster experimental Homebrew alternative

lucasgelfond/zerobrew.json
{
"createdAt": "2026-01-19T12:42:04Z",
"defaultBranch": "main",
"description": "A 5-20x faster experimental Homebrew alternative",
"fullName": "lucasgelfond/zerobrew",
"homepage": "",
"language": "Rust",
"name": "zerobrew",
"pushedAt": "2026-06-12T02:43:09Z",
"stargazersCount": 7428,
"topics": [],
"updatedAt": "2026-06-18T21:11:59Z",
"url": "https://github.com/lucasgelfond/zerobrew"
}

zerobrew

English · 中文

Lint Test Release Discord [License: MIT]!(./LICENSE-MIT.md) [License: Apache 2.0]!(./LICENSE-APACHE.md)

zerobrew demo

zerobrew brings uv-style architecture to Homebrew packages on macOS and Linux.

Terminal window
curl -fsSL https://zerobrew.rs/install | bash

The installer updates your shell config. After it finishes, restart your terminal or run the source command it prints.

Or via Homebrew:

Terminal window
brew install lucasgelfond/zerobrew/zerobrew

If you used the standalone installer, rerun it:

Terminal window
curl -fsSL https://zerobrew.rs/install | bash
zb --version

If you installed with Homebrew:

Terminal window
brew update && brew upgrade zerobrew
Terminal window
zb install jq # install one package
zb install wget git # install multiple
zb bundle # install from Brewfile
zb bundle install -f myfile # install from custom file
zb bundle dump # export installed packages to Brewfile
zb bundle dump -f out --force # dump to custom file (overwrite)
zb uninstall jq # uninstall one package
zb outdated # list packages with newer versions
zb upgrade # upgrade all outdated packages
zb upgrade jq wget # upgrade specific packages
zb reset # uninstall everything
zb gc # garbage collect unused store entries
zbx jq --version # run without linking
PackageHomebrewZB (cold)ZB (warm)Cold SpeedupWarm Speedup
Overall (top 100)452s226s59s2.0x7.6x
ffmpeg3034ms3481ms688ms0.9x4.4x
libsodium2353ms392ms130ms6.0x18.1x
sqlite2876ms625ms159ms4.6x18.1x
tesseract18950ms5536ms643ms3.4x29.5x

zerobrew is more of a performance-optimized client for the Homebrew ecosystem. We rely on:

  • Homebrew’s formula definitions (homebrew-core)
  • Homebrew’s pre-built bottles when available
  • Homebrew’s package metadata and infrastructure

Our innovations focus on:

  • Content-addressable storage for deduplication
  • APFS clonefiles for zero-overhead copying
  • Source build fallback using Homebrew’s Ruby DSL

zerobrew is experimental. We recommend running it alongside Homebrew rather than as a replacement, and do not recommend purging homebrew and replacing it with zerobrew unless you are absolutely sure about the implications of doing so.

  • Status: Experimental, but already useful for many common Homebrew formulas.
  • Feedback: If you hit incompatibilities, please open an issue or PR.
  • License: Dual-licensed under [Apache 2.0]!(./LICENSE-APACHE.md) OR [MIT]!(./LICENSE-MIT.md), at your choice.