explaingit

lucasgelfond/zerobrew

7,257RustAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

Zerobrew is a faster drop-in replacement for Homebrew on macOS and Linux that installs command-line software up to 7.6x faster using content-addressable storage and APFS clonefiles.

Mindmap

mindmap
  root((zerobrew))
    What it does
      Faster package install
      Up to 7x speedup
      Uses Homebrew packages
    Key Features
      Content-addressable storage
      APFS clonefiles
      Brewfile support
    Commands
      zb install
      zb uninstall
      zb bundle
    Audience
      macOS users
      Linux users
      CLI developers
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Install Homebrew packages significantly faster on a Mac or Linux machine

USE CASE 2

Batch-install all project dependencies listed in a Brewfile on a new machine

USE CASE 3

Run a CLI tool once with zbx without permanently linking it into your shell path

Tech stack

Rust

Getting it running

Difficulty · easy Time to first run · 5min
Dual-licensed MIT and Apache 2.0, use freely for any purpose including commercial projects, with attribution.

In plain English

Zerobrew is an experimental package manager for macOS and Linux that installs software from the Homebrew ecosystem but does so significantly faster. Homebrew is the widely used tool for installing command-line programs on a Mac by typing something like "brew install git". Zerobrew replaces the client side of that process while still using Homebrew's existing list of packages, pre-built files, and infrastructure. The speed improvement comes from two main techniques. First, zerobrew uses content-addressable storage, meaning that if two packages share identical files, those files are stored only once rather than duplicated. Second, it takes advantage of APFS clonefiles, a macOS feature that copies files without actually duplicating the data on disk until the copy is modified, making the physical install step nearly instant on warm runs. According to the benchmarks in the README, installing common packages is roughly 2 times faster on a cold run and up to 7.6 times faster when the package data has already been downloaded. The command-line interface is close to Homebrew's. You run "zb install" to add packages, "zb uninstall" to remove them, and "zb bundle" to install everything listed in a Brewfile, which is a plain text file listing the packages a project or machine requires. There is also a "zbx" command to run a package without linking it into your shell path. The project describes itself as experimental and recommends running it alongside Homebrew rather than removing Homebrew entirely. It is dual-licensed under MIT and Apache 2.0, and can be installed with a one-line curl command or through Homebrew itself.

Copy-paste prompts

Prompt 1
Write a shell script that uses zerobrew's `zb bundle` command to install all packages from a Brewfile on a fresh macOS machine and log which packages were installed.
Prompt 2
How do I run zerobrew alongside Homebrew without removing Homebrew? List the exact steps to install zerobrew and verify it's using Homebrew's package list.
Prompt 3
I want to benchmark install speed between Homebrew and zerobrew for a set of 10 packages. Write a bash script that times both and outputs a comparison table.
Prompt 4
Explain how content-addressable storage makes zerobrew faster than Homebrew when two packages share common files, what happens on disk in each case?
Open on GitHub → Explain another repo

← lucasgelfond on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.