Show HN:Homebrew 6.0.0
Show HN: Homebrew 6.0.0

原始链接: https://brew.sh/2026/06/11/homebrew-6.0.0/

Homebrew 6.0.0 已发布,带来了重大的安全性、性能和功能升级。 **主要亮点:** * **Tap 信任机制:** 一项新的安全机制要求用户明确信任第三方 Tap。这可以防止未经授权的 Ruby 代码执行,显著增强了 Homebrew 防御供应链攻击的能力。 * **内部 JSON API:** 更快、更高效的 JSON API 现已成为默认设置,减少了网络流量并加快了 `brew update` 的速度。 * **Linux 沙盒:** Linux 上的构建和安装阶段现已通过 Bubblewrap 进行沙盒化,安全性与 macOS 看齐。 * **`brew bundle` 改进:** 现在默认支持并行安装 Formula,扩展了清理支持,并初步集成了 Windows `winget`。 * **安装步骤框架:** 一种新的 DSL 允许在不执行 Ruby 代码的情况下处理常见的安装后任务(如文件准备),从而提高了性能和可审计性。 * **整体性能:** 启动时间和 `brew leaves` 等常用命令的速度更快,整体优化减少了 Ruby 库的开销。 * **兼容性:** 增加了对 macOS 27 (Golden Gate) 的初步支持。 此次发布是在 “brew-rs” Rust 实验结束后推出的,项目重心重新回到基于 Ruby 的性能优化上。作为由志愿者运营的项目,Homebrew 继续寻求社区捐款以支持其基础设施。

Homebrew 6.0.0 现已发布,为这一流行的软件包管理器带来了多项重大改进。主要更新包括:全新的 tap 信任安全机制、体积更小且速度更快的默认 JSON API,以及在 Linux 上实现的沙盒化功能。 此次发布还涵盖了性能优化、增强的 `brew bundle` 功能,以及对 macOS 27 (Golden Gate) 的初步支持。此外,开发团队根据近期用户调查的反馈,更新了多项默认设置。 在随后的 Hacker News 讨论中,用户提出了关于自动更新 cask 管理的问题。开发人员明确表示,`brew upgrade` 现在默认会更新这些内容,但用户可以通过设置 `HOMEBREW_NO_UPGRADE_AUTO_UPDATES_CASKS` 环境变量来关闭此行为。其他讨论话题还包括未来向声明式安装步骤转变的可能性,以及用户希望在 `Brewfile` 配置中实现对 tap 信任更细粒度控制的诉求。
相关文章

原文

Today, I’m proud to announce Homebrew 6.0.0. The most significant changes since 5.1.0 are a new tap trust security mechanism, the new faster, smaller, default internal Homebrew JSON API, sandboxing on Linux, better defaults informed by our user survey, many brew bundle improvements, improved performance and initial support for macOS 27 (Golden Gate).

✨ Highlights since 5.1.0

🔐 Tap trust

Homebrew 6.0.0 introduces tap trust. A third-party tap can contain arbitrary, unsandboxed Ruby that runs on your machine, so Homebrew now requires taps (and tap-qualified formulae and casks) to be explicitly trusted before their code is evaluated or run. This reduces the risk from malicious or compromised taps while leaving the official Homebrew taps trusted by default. See the new Tap-Trust documentation for details.

⚡ Default internal JSON API

The internal JSON API is now the default, advancing the smaller API that Homebrew re-enabled and turned on for developers recently. It combines all Homebrew’s metadata into a single download, so brew updates faster and talks to the network less. It was opt-in via HOMEBREW_USE_INTERNAL_API since 5.0.0; that variable is now deprecated (see below).

🐧 Linux sandbox

The Linux Bubblewrap sandbox aligns Linux with macOS, where build, test and postinstall phases already run sandboxed. It is on by default for developers, Homebrew moved its macOS sandbox logic to share code, improved Linux sandbox behaviour (with Homebrew/homebrew-core setting the sandbox env in CI), hardened sandboxed install phases, sandboxed cask executable hooks, allowed logs in the build sandbox, installed Bubblewrap on hosted Ubuntu and skips sandbox setup for syntax-only jobs.

⚙️ Better defaults

📦 brew bundle

🏎️ Performance

Homebrew is faster across the board, with startup performance tweaks, a ~30% faster brew leaves, parallelised bottle tab fetching on upgrade and less work loading Ruby libraries at startup.

🍎 macOS 27 (Golden Gate)

Homebrew adds initial support for macOS 27 (Golden Gate).

🔮 Upcoming changes

🔒 Security

🚨 Security advisories

Homebrew published three security advisories:

🛡️ Other security improvements

🗑️ Deprecations

🎁 Features

🖥️ Casks

💻 Operating system support

🚰 Taps

ℹ️ brew info and brew tap-info

🆕 New commands, flags and output

🧊 Cooldowns, livecheck and bumping

⬇️ Downloads and fetching

🛎️ Services

🧪 Formulae and packaging

🪜 Install steps framework

🔀 Other changes

🧹 Internals, typing and refactors

🛠️ Continuous integration and developer tooling

📚 Documentation

Finally:

  • Homebrew is a non-profit project run entirely by volunteers, not employees. We need your funds to pay for software, hardware and hosting around continuous integration and future improvements to the project. Every donation will be spent on making Homebrew better for our users. Please consider a regular donation through GitHub Sponsors, OpenCollective and Patreon.
  • Homebrew/brew has no open issues at the time of writing 🎉.
  • Homebrew has a brand new brew.sh homepage style.
  • BrewUI is Homebrew’s upcoming official graphical interface. It’s not ready for general use yet.
  • The brew-rs experiment in moving parts of Homebrew’s Ruby frontend to Rust has concluded: benchmarks showed Homebrew’s Rust frontend only ahead on narrow, already-cached bottle fetches, not on representative full installs (pouring bottles, linking, writing metadata and health checks), so the performance focus has moved back to Ruby and to starting useful network and disk I/O sooner. We’ve added an FAQ entry explaining all of this. Our numbers come from honest, fully-compatible comparisons. Not all unofficial Homebrew frontends seem to apply the same rigor to their benchmarks, compatability or security: your mileage with those may vary.
  • Homebrew is increasingly a “package manager for everywhere”: Homebrew is recommended in Microsoft’s Windows Developer Config for WSL comfort, works well on Bazzite and now supports winget in brew bundle as a Windows-only feature.
  • The Homebrew team is aware of the supply-side security issues with other package managers. We’ve taken various steps to mitigate these risks for our users, some existing (e.g. macOS sandboxing, human review on all changes, environment filtering, all package maintainers are Homebrew maintainers), some new (e.g. Linux sandboxing, sandboxing reads of sensitive locations, cooldown from riskier ecosystems). We will continue to monitor the supply-side security landscape and take further steps as needed. See the new Supply Chain Security documentation we’ve added for details.
  • Homebrew has documented the principles behind our AI and LLM usage rules in a new Responsible AI Usage page.
  • Homebrew has joined the Open Source Resistance and you should too.

Thanks to all our hard-working volunteer maintainers, contributors, sponsors and supporters for getting us this far.

Latest Posts

  • 5.1.0 10 Mar 2026

    Homebrew 5.1.0 has been released. Homebrew’s most significant changes since 5.0.0 are expanded brew bundle support, brew version-install, new -full formula handling an...

  • 5.0.0 12 Nov 2025

    Today, I’d like to announce Homebrew 5.0.0. The most significant changes since 4.6.0 are download concurrency by default, official support for Linux ARM64/AArch64, tim...

  • 4.6.0 05 Aug 2025

    Today, I’d like to announce Homebrew 4.6.0. The most significant changes since 4.5.0 are opt-in concurrent downloads with HOMEBREW_DOWNLOAD_CONCURRENCY, preliminary ma...

  • 4.5.0 29 Apr 2025

    Today, I’d like to announce Homebrew 4.5.0. The most significant changes since 4.4.0 are major improvements to brew bundle/services, preliminary Linux support for cask...

联系我们 contact @ memedata.com