zerobrew 是一款针对 macOS 的 Homebrew 替代方案,通过内容寻址存储和 APFS 克隆文件技术在安装速度上实现了显著优化。1 根据 2026 年 10 月 8 日发布的基准测试结果,zerobrew 0.3.5(开发版)在热安装场景下相比 Homebrew 7.0.8 的速度中位数快 56 倍,其中 24 个软件包的安装速度甚至超过 100 倍,冷安装则快 5.3 倍。1
性能提升的核心在于流程优化。1 zerobrew 采用进程内重定位和内容寻址存储的方案,相比之下,Homebrew 使用 Ruby 评估公式、解包和逐个二进制文件重签名的方式效率较低。1 该项目复用了 Homebrew 的包构建农场和公式定义,但重新设计了安装流程中的打包和路径重写环节。1
项目采用双重许可证(Apache 2.0 或 MIT),当前仍处于实验性阶段,建议用户与 Homebrew 并行使用。1
Zerobrew, a performance-optimized alternative to the Homebrew package manager, has demonstrated significant speed improvements through the use of content-addressed storage and APFS clone file technology 1. According to benchmark tests conducted on October 8, 2026, zerobrew achieves a median speedup of 56 times over Homebrew in hot installation scenarios, with over 100 times faster performance for certain packages, and 5.3 times faster for cold installations 1.
The project leverages Homebrew's existing package build farm and formula definitions while optimizing the installation workflow by streamlining the packaging and path rewriting steps 1. This architectural difference accounts for the performance gains, as Homebrew relies on Ruby formula evaluation, unpacking, and individual binary resigning, whereas zerobrew employs in-process relocation and content-addressed storage 1. The version 0.3.5 development release of zerobrew was tested against Homebrew version 7.0.8, with 24 software packages demonstrating over 100x acceleration in hot installation 1.
As an experimental project, zerobrew is recommended for parallel use alongside Homebrew rather than as a direct replacement 1. The software is released under dual licensing terms of Apache 2.0 or MIT 1.
评论
还没有评论,欢迎留下第一条。