Choose Brewfiles for a software list, not a frozen workstation
Use Homebrew for a reusable workstation software list; choose another approach when exact historical versions are required. The Homebrew Bundle guide describes a declarative interface: specify the software state you want, and Bundle installs or upgrades packages to reach it. The same guide explicitly rejects a Brewfile lock file. For a developer replacing a laptop, the distinction is consequential: preserving the selection of tools and preserving the precise environment those tools once formed are different requirements.
A Brewfile can live in version control, where changes to the software list become visible alongside project changes. Bundle supports separate files selected with --file, so personal tools can stay apart from a work baseline. Committing the file does not change Homebrew's rolling version policy. Its practical benefit is a readable inventory that can drive installation, with package updates governed by the behavior described in the Bundle guide.
What people use brew for
Michael Raymond describes using Brewfiles after repeatedly installing applications on a new work computer in his Homebrew article. His example starts with a list of formulae, casks and other dependencies, then introduces brew bundle dump to generate a file from installed software. The article distinguishes a saved inventory from repeatedly searching for applications and installing them individually. It also identifies VS Code extensions as entries that can appear in the export.
| Use case | Source | Recorded example |
|---|---|---|
| Maintain separate personal and work inventories | Raymond's Brewfile article | Raymond reports creating separate files for his two computers. |
| Leave extension management to VS Code synchronization | Raymond's Brewfile article | Raymond describes already syncing his extensions and excluding them from the Brewfile inventory. |
| Produce binary packages for a third-party tap | Bottling discussion #3346 | Participants discuss building and publishing bottles without a dedicated BrewTestBot. |
| Distribute slow-to-compile simulation software | Simulation tap discussion in #3346 | scpeters reports daily Jenkins checks to identify bottles needing replacement. |
The Bundle guide documents multiple snapshots: write different Brewfiles with --file, commit them to version control and compare them with ordinary diff tools. Its documented restore command installs and, by default, upgrades the listed packages. A generated file records an installed selection; choosing which of those entries belongs on every work computer is a separate editorial decision for the person maintaining the baseline.
A tap is a repository of package definitions, while a bottle is a prebuilt binary package. Those terms describe another use of Homebrew: distributing software rather than just installing a workstation's tools. In issue #3346, the opening report calls building, publishing and updating bottle definitions labor intensive without a BrewTestBot or similar system. That distribution work needs an owner alongside the person maintaining the Brewfile.
What happened when we ran it
Our run installed the Python analytics component in 15 seconds and built it in 1 second at commit 62a9ad2 on November 22, 2026. The sandbox measurement recorded 41 dependencies and 209 MB on disk for Library/Homebrew/formula-analytics/. Tests were skipped because this path had no test script or target. The directory matters: it identifies the component that produced the setup and build measurements, rather than leaving readers to infer which part of the repository ran.
| Recorded step or signal | Result | What you can take from it |
|---|---|---|
| Analytics component installation | Succeeded in 15 seconds | The selected Python project's setup step completed. |
| Dependencies and disk | 41 dependencies; 209 MB on disk | The measurement records this component's dependency footprint. |
| Analytics component build | Succeeded in 1 second | The harness build step completed. |
| Tests | No test script or target; skipped | There is no passing-test count. |
| Repository scan | 2,963 files; approximately 364,338 source lines; 19.2 MB checked out | The checkout size is separate from installed dependencies. |
| Automation scan | 24 CI workflow files; no Dockerfile; no tests directory detected | These are file-detection results. |
The recorded sandbox configuration was 3 CPUs, 8 GB RAM and image ghcr.io/astral-sh/uv:python3.12-bookworm. The harness recorded a total duration of 19 seconds. GitHub identifies Homebrew/brew's main language as Ruby in the repository metadata, while the harness selected the Python analytics directory. The component path and repository language explain why the timing belongs to analytics setup rather than to a typical workstation package installation.
The separate hands-on attempt failed its safety step with this recorded error: "unsafe repo: none of compose.yaml, compose.yml, docker-compose.yaml, docker-compose.yml exists (rule: a compose file is required)". Its run summary nevertheless claimed deployment with Docker Compose and every port bound to 127.0.0.1. Those entries conflict. The concrete safety failure records a stopped step, while teardown recorded "ok".
Where people get stuck: similar symptoms have different causes
Issue #10275 records brew update and brew upgrade terminating with Killed: 9 on an M1 Mac. The reporter's output names Homebrew's Git executable and says Git 2.30.0 was already installed. The discussion later reports recovery after a maintainer suggested replacing Git and related dependencies. That is a recovery report attached to a particular installation, rather than a reason to prescribe the same repair for every update failure.
| Historical report | What the thread says helped | Recorded outcome |
|---|---|---|
| M1 maintenance commands terminated with KILL, #10275 | A maintainer suggested replacing Homebrew Git and related dependencies. | The reporter confirmed recovery; the discussion still sought a reproduction. |
| Python built from source despite an ARM bottle, #9488 | Maintainers identified missing Apple Command Line Tools. | The thread explained the fallback for that machine. |
| Node's ARM bottle disappeared after an update, #9488 | A maintainer rebuilt the bottle. | The maintainer confirmed its return. |
| An empty tap broke update fetching, #987 | The user removed the empty tap. | The user reported that leaving it untapped helped. |
| Updates became stuck on an old branch or tag, #1430 | The thread offered a Git fetch and hard reset. | Users also reported recurrence. |
The M1 discussion also records a user expecting automatic PATH configuration. A maintainer pointed to the installer's printed post-install directions. The current installation guide requires shell configuration and says Homebrew will not work without it. For a shell that cannot find an installed command, the printed configuration is a specific starting point. It addresses command discovery, which differs from a Git process being killed during an update.
The README's troubleshooting sequence starts with brew update, running and reading brew doctor, and consulting the troubleshooting checklist. Issue #1430 instead describes a particular historical Git state, including checkout errors followed by an "Already up-to-date" message. Its hard-reset sequence overwrites local changes. Keeping the failing command and its output gives a support discussion something more precise than the statement that Homebrew's update process is broken.
Third-party bottles need someone to rebuild them
Issue #3346 describes third-party bottles breaking after library dependency changes and staying broken until their owner publishes replacements. In that bottling discussion, scpeters reports daily Jenkins jobs that test the simulation tap's bottles to identify rebuild needs. The maintainer considers the effort worthwhile because the software takes a long time to compile. Binary distribution moves compilation away from users while leaving someone responsible for maintaining the artifacts.
The same thread discusses automation for building bottles, publishing them and updating formula definitions. A team using an external tap therefore has two inventories to consider: the software it wants installed and the binary artifacts its tap maintainer currently provides. Recording the tap in a Brewfile preserves the repository choice. It does not perform the CI checks or publish replacement bottles described by the maintainers in issue #3346.
The historical dependency discussion in issue #60 gives a concrete example: package A changes from 1.0 to 2.0 while package B still needs A 1.0. It also names options breaking invisibly and dependencies changing across taps. Participants discuss linkage checks, formula tests and fewer optional combinations. Those proposals describe maintenance work around dependency changes, rather than making an inventory file responsible for preserving every previously working combination.
Analytics consent and installation ownership are administrative decisions
Issue #142 records objections to opt-out analytics from users concerned about organizations that restrict outbound data. The historical consent discussion explicitly mentions "companies and government agencies that have a problem with data being sent out without explicit permission." A participant says analytics had been opt-in during testing before notifications went to the mailing list and Twitter. Other participants dispute whether those announcements reached enough users to constitute adequate notice.
That thread is evidence of an administrative concern: an organization's permission to transmit data may differ from an individual developer's preference. It also documents a disagreement about consent and notification, rather than a package-installation error. The participants ask for an active choice during installation or update and for the interface to remember that preference. The historical discussion should be read as a record of those objections, with its participants and statements kept explicit.
Homebrew provides no security guarantees for installations where users with write permissions to the Homebrew prefix are considered untrusted. The installation guide states that boundary, including installations managed through the macOS package installer. It also describes a dedicated owning account while other accounts read and execute installed software. Routine formula installation and updates run as that owner without sudo after provisioning; some casks and system services require elevated privileges.
Current activity and Apple Silicon history answer different questions
GitHub recorded a November 22, 2026 push and release 7.0.15 dated November 19, 2026. The repository metadata recorded 50,406 stars and 12 open issues and pull requests combined. The release and push dates show recent maintenance activity. Stars count attention, while the combined open queue includes pull requests as well as issues. These figures describe repository activity rather than the outcome of installing a particular formula.
The early Apple Silicon tracking issue #7857 explicitly labels its old compatibility table historical. The later issue #10152 explains that bottle availability depended on upstream software supporting ARM. The current installation guide states the platform requirements separately: Apple Silicon with macOS Sequoia 15 or higher on supported hardware, with Intel Mac configurations classified as Tier 3. Building formulae from source requires Xcode or its Command Line Tools.
brew vs alternatives: compare the requirement first
Nix's README describes reproducible package management, while Homebrew Bundle explicitly rejects a Brewfile lock file. That documented distinction makes Nix a candidate when recreating an environment is the deciding requirement. MacPorts provides another package-management client to investigate on macOS. The comparison below also keeps two narrower choices visible: saving an inventory instead of repeating individual downloads, and distributing binaries instead of making each user compile a tap's software.
| Choice | Why consider it | Source and practical distinction |
|---|---|---|
| Brewfiles instead of repeated individual downloads | Keep a named software inventory and reuse it. | Raymond contrasts repeated application installation with Brewfiles in his article. |
| Bottles instead of compiling a tap's software | Move repeated compilation away from users. | The simulation tap maintainer describes daily checks and slow compilation in #3346. |
| Nix for an environment-recreation requirement | Investigate reproducible package management. | The Nix README names reproducibility; the Bundle guide rejects lock-file semantics. |
| MacPorts as another macOS candidate | Assess a separate package client against your software requirements. | The MacPorts repository identifies its command-line client and links its documentation. |
Homebrew's --no-upgrade option changes whether Bundle upgrades installed packages; the Bundle guide explicitly says it does not pin versions or add lock-file support. It controls a Bundle operation without turning the file into a historical environment specification. That distinction also explains why a versioned formula entry and a fully preserved dependency graph are different things: the Brewfile records the requested package selection under Homebrew's version policy.
FAQ
brew update refreshes Homebrew and package definitions; brew upgrade upgrades installed packages under the FAQ's documented rules. The distinction answers the update question before choosing a command: updating the definitions and changing installed software are separate operations. The FAQ also documents dependency upgrades, pinned formulae and applications with their own updaters, so a requested upgrade can involve more than the package named in the command.
How do I update all packages installed with brew?
Use brew update, brew outdated and brew upgrade in that order, as the FAQ documents. The first command refreshes definitions and Homebrew itself, the second lists outdated installations, and the third performs upgrades. An outdated pinned formula can still need upgrading when another formula requires it. An application's own updater can also change a cask-installed application independently of Homebrew's installation record.
How do I install brew?
Follow the installer linked from Homebrew's installation guide, then apply its printed shell-configuration directions. The documented default prefix is /opt/homebrew on Apple Silicon and /home/linuxbrew/.linuxbrew on Linux. The guide says the shell setup is necessary for Homebrew to work. It distinguishes initial provisioning from routine formula operations, which run as the installation owner without sudo after the prefix has been provisioned.
How do I install a specific package version with brew?
Homebrew does not support installing arbitrary older software versions, according to the Bundle version policy. Bundle has no Brewfile lock file, and disabling its upgrades does not add one. A versioned formula entry such as the guide's postgresql@16 example names a package choice. It does not turn the entire Brewfile and its dependencies into a frozen historical environment.
How do I update brew itself?
brew update updates Homebrew itself and package definitions, as the FAQ explains. brew upgrade changes installed packages. When reporting a failure, the command and its output identify which operation failed. The README separately asks users seeking help to run and read brew doctor and consult its troubleshooting checklist before asking in discussions or opening an issue.
How do I update an individual brew package?
Use brew upgrade <formula> after brew update, following the FAQ's named-formula example. Homebrew explains that installing or upgrading one formula can upgrade dependencies and packages that depend on them. Naming one formula selects the requested package without promising it will be the only package changed. Shared components such as Python and OpenSSL are examples given in the FAQ's explanation of this behavior.
How do I update a Homebrew cask?
An ordinary brew upgrade applies Homebrew's documented cask rules, including special handling for self-updating applications and casks marked latest. The FAQ explains that Homebrew compares app-bundle versions for some self-updating applications and normally skips cases where that comparison is unavailable. Casks using latest are excluded from an ordinary upgrade because they have no version number to compare. An application's own updater operates separately.
How do I uninstall Homebrew?
Run the uninstall script from the Homebrew/install repository, as Homebrew's FAQ directs. That procedure removes the package manager and is a different task from repairing or removing one installed application. The FAQ links the maintained script rather than asking users to assemble directory-deletion commands from installation paths. The intended scope of removal determines which instructions apply.
How is brew used with VS Code?
Brewfile exports can include VS Code extensions, as Raymond's article describes. He says his extensions already sync automatically, which makes a second inventory inconvenient for his setup. The Bundle guide also lists VS Code extensions among supported package types. For workstation setup, the choice is whether the Brewfile or the editor's existing synchronization workflow owns that extension selection.
What we have not tested yet
The November 22 measurement covers the Python analytics component at 62a9ad2, not a complete installation of the Ruby package manager. We have not tested a workstation migration, package installation speed, update recovery, or Nix and MacPorts on identical hardware. The Compose records contain a failed safety step and a contradictory deployment summary, with no successful workload or screenshot result. Actual runtime and operating-system versions require raw toolchain logs; the image label supplies neither. Skipped tests and file detection supply no full-repository test result or vulnerability count.
The historical issue reports do not establish current failure rates, current Apple Silicon package coverage or the behavior of every third-party tap. Analytics network traffic and Homebrew's security were outside this run. The readable analytics-policy page contents are absent from this review's evidence, so current opt-out commands, storage backend and notice behavior are not asserted here. The consent discussion above concerns issue #142. The Brewfile and cask commands come from documentation and attributed examples rather than newly executed workstation checks.
The decision is to choose Homebrew when a maintained list of current workstation software meets the requirement, and choose another environment approach when historical versions must be recreated. A team Brewfile also needs someone to maintain its entries and any third-party taps. The documentation supplies the version-policy boundary, while the bottle discussions describe the rebuild work that an inventory does not perform.


