Cette page est affichée en anglais. Une traduction française est en cours.
ConfigsJul 1, 2026·3 min de lecture

Zerobrew — 5-20x Faster Experimental Homebrew Alternative in Rust

A Rust-based package manager for macOS that aims to be 5-20x faster than Homebrew by rethinking dependency resolution and installation from scratch.

Prêt pour agents

Installation avec revue préalable

Cet actif nécessite une revue. Le prompt copié demande un dry-run, affiche les écritures, puis continue seulement après confirmation.

Needs Confirmation · 64/100Policy : confirmer
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Zerobrew
Commande avec revue préalable
npx -y tokrepo@latest install 1dce6589-758b-11f1-9bc6-00163e2b0d79 --target codex

Dry-run d'abord, confirmez les écritures, puis lancez cette commande.

Introduction

Zerobrew is an experimental package manager for macOS written in Rust that targets dramatic speed improvements over Homebrew. By rebuilding dependency resolution, formula parsing, and installation from the ground up, it achieves 5-20x faster install times for common developer packages.

What Zerobrew Does

  • Installs macOS developer packages with significantly reduced wall-clock time
  • Resolves dependency graphs using a parallel solver written in Rust
  • Downloads and unpacks bottles (pre-built binaries) concurrently
  • Maintains compatibility with a large subset of Homebrew formulas
  • Provides a familiar CLI interface for developers used to brew commands

Architecture Overview

Zerobrew replaces Homebrew's Ruby-based formula evaluation with a Rust parser that reads formula metadata directly. Dependency resolution uses a SAT-solver-inspired algorithm that runs in parallel. Bottle downloads are pipelined so that unpacking begins while subsequent dependencies are still downloading. The result is near-instant installs for packages with pre-built bottles.

Self-Hosting & Configuration

  • Install via the one-line shell script from the project website
  • Packages are installed to a configurable prefix (default: /opt/zerobrew)
  • Compatible with existing Homebrew taps for formula discovery
  • Environment variables control concurrency, cache location, and mirror selection
  • Uninstall cleanly removes all managed packages and the Zerobrew binary

Key Features

  • 5-20x faster than Homebrew for common install operations
  • Single static Rust binary with no runtime dependencies
  • Parallel dependency resolution and concurrent downloads
  • Compatible with Homebrew bottle infrastructure for pre-built binaries
  • Minimal disk footprint compared to Homebrew's Ruby runtime

Comparison with Similar Tools

  • Homebrew — the standard macOS package manager; Zerobrew is faster but covers fewer formulas
  • MacPorts — builds from source by default; Zerobrew uses pre-built bottles for speed
  • Nix — reproducible builds with a functional model; Zerobrew prioritizes simplicity and speed
  • pkgin — NetBSD package manager ported to macOS; Zerobrew has better macOS integration
  • Mise — manages language runtimes; Zerobrew manages system packages more broadly

FAQ

Q: Can Zerobrew replace Homebrew entirely? A: Not yet. Zerobrew is experimental and supports a subset of Homebrew formulas. Complex formulas with custom build steps may not work.

Q: Does it use Homebrew's bottle CDN? A: Yes. Zerobrew downloads the same pre-built bottles that Homebrew uses, which is why installs are fast.

Q: Will it conflict with an existing Homebrew installation? A: No. Zerobrew installs to a separate prefix and does not modify Homebrew's directories.

Q: Does it work on Linux? A: Currently macOS only. Linux support is under consideration.

Sources

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires