Product
Developer tool
Next Token / Wiki

Homebrew

A package manager for macOS and Linux that installs, updates and removes software from the command line.

What Homebrew is

Homebrew is an open-source package manager for macOS and Linux (including WSL), written by Max Howell in 2009 according to English Wikipedia and now run as a non-profit project by volunteer maintainers. It installs, updates, and removes software from the command line with a single command, replacing manual downloads, drag-and-drop installs, and configuration; it is one of the most common ways Mac developers set up a machine.

Usage and core concepts

  • Installing: commands like brew install ffmpeg firefox; the website offers a one-line install script.
  • Formulae and Casks: Formulae cover command-line tools and libraries (the official repository requires open-source licenses and human review); Casks cover prebuilt GUI apps, fonts, and plugins.
  • Taps: third-party repositories where anyone can host their own formulae and casks.
  • Brewfile and brew bundle: write a software list into a Brewfile and install everything on a new machine with one command — the standard way to replicate a full development environment.

Install locations and other details are in the official documentation.

Discussion in the show

In episode 012, in the chapter “Opus 5.6、黎曼猜想与文明升维” (on Opus 5.6, the Riemann hypothesis, and civilization-level jumps), Xiangyang Qiaomu told a story about a prompt he found embarrassingly lazy: he had built a web page that scans common software and generates recommendation posters, and when he ran out of feature ideas he wrote “keep polishing and iterating”. The model responded by adding a feature to tick app logos and generate a one-click Homebrew install script — “paste it directly, and you can replicate the software someone else has installed”. That usage is a classic Homebrew scenario: an install script or Brewfile sets up the same software on another Mac. This is Xiangyang Qiaomu’s description of his product’s behavior; Homebrew’s own capabilities, independent of any model, are defined by the official documentation.

Frequently asked questions

What is Homebrew for?

It is a package manager that installs, updates, and removes software from the command line on macOS, Linux, and WSL. It was written by Max Howell in 2009; the official site is brew.sh.

How do I install Homebrew?

Per the website, run the one-line install script in a terminal. Then install command-line tools with brew install <name> and GUI apps with brew install --cask <name>.

What is the difference between Formulae and Casks?

Formulae describe command-line tools and libraries; the official repository requires them to be open source and human-reviewed. Casks describe prebuilt software such as GUI apps. A given piece of software is provided through one of the two, not both.

How do I restore my software setup on a new Mac?

Run brew bundle dump on the old machine to create a Brewfile, then run brew bundle on the new one to install everything in the list. On episode 012, Xiangyang Qiaomu’s “one-click install script that replicates someone else’s installed software” describes this kind of workflow.

Sources

At a glance

Type
Developer tool