Repolode
Homebrew

Homebrew/install

Shell scripts that install and uninstall the Homebrew package manager on macOS and Linux.

Stars
2,712
Forks
1,102
Open issues
0
Last commit
yesterday

What is it?

This repository holds the bootstrap scripts for Homebrew, the package manager for macOS and Linux. Running the install script sets up Homebrew under a default prefix (/opt/homebrew on macOS, /home/linuxbrew/.linuxbrew on Linux) or a custom path passed with --path. The uninstall script removes a Homebrew installation from the same locations.

The scripts support non-interactive runs for automation, custom Git mirrors for the brew and homebrew-core repositories, and installs without sudo when the prefix is writable. Environment variables such as HOMEBREW_NO_SUDO and HOMEBREW_NO_INSTALL_FROM_API control privilege use and tap behaviour. For MDM deployments on Apple Silicon Macs, a .pkg installer is also offered.

Key features

  • 01Installs Homebrew on macOS and Linux with a single shell command.
  • 02Supports a custom installation prefix via --path.
  • 03Runs non-interactively for scripted deployments.
  • 04Allows Git mirror configuration for faster downloads.
  • 05Provides a matching uninstall script.

Use cases

  • Setting up a new Mac or Linux machine with Homebrew.
  • Deploying Homebrew to multiple machines through automation or MDM.
  • Migrating a Homebrew installation between prefixes, such as from Intel to Apple Silicon.
  • Removing Homebrew from a system cleanly.

Quick start

  1. 1

    Run the official install script from the README

  2. 2

    On Linux or WSL, install the prerequisite packages listed in the Homebrew docs first

Things to know

  • This repository only installs Homebrew on macOS and Linux (including WSL).
  • Linux and WSL need extra prerequisite packages, and the installer aborts if Git is missing.

In collections

Topics

FAQ

What is install?
Shell scripts that install and uninstall the Homebrew package manager on macOS and Linux. This repository holds the bootstrap scripts for Homebrew, the package manager for macOS and Linux. Running the install script sets up Homebrew under a default prefix (/opt/homebrew on macOS, /home/linuxbrew/.linuxbrew on Linux) or a custom path passed with --path. The uninstall script removes a Homebrew installation from the same locations.
Is install free to use? What license does it have?
install is open source under the BSD-2-Clause license. Check the license terms before using it in commercial products.
Is install still maintained?
Actively maintained. The last commit to install was on Nov 6, 2026.
What can I use install for?
Setting up a new Mac or Linux machine with Homebrew. Deploying Homebrew to multiple machines through automation or MDM. Migrating a Homebrew installation between prefixes, such as from Intel to Apple Silicon. Removing Homebrew from a system cleanly.
How do I install install?
Run the official install script from the README On Linux or WSL, install the prerequisite packages listed in the Homebrew docs first
Where can I get install?
The source code and installation instructions are on GitHub: https://github.com/Homebrew/install

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects