From 2dba6257ecc663a50ef6681b633b68f14b7930a0 Mon Sep 17 00:00:00 2001 From: Kid <44045911+kidonng@users.noreply.github.com> Date: Sun, 18 Sep 2022 19:24:09 +0800 Subject: [PATCH] docs: document `HOMEBREW_INSTALL_FROM_API` usage in installation --- docs/Installation.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/Installation.md b/docs/Installation.md index 72dd8cdad7..d0ca92ef62 100644 --- a/docs/Installation.md +++ b/docs/Installation.md @@ -25,6 +25,17 @@ export HOMEBREW_CORE_GIT_REMOTE="..." # put your Git mirror of Homebrew/homebre The default Git remote will be used if the corresponding environment variable is unset. +## Skip Tap Cloning + +You can instruct Homebrew to skip cloning the Homebrew/homebrew-core tap during installation by setting `HOMEBREW_INSTALL_FROM_API` in your shell environment with this script: + +```bash +export HOMEBREW_INSTALL_FROM_API=1 +/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" +``` + +This will make Homebrew install formulae and casks in homebrew/core and homebrew/cask taps using Homebrew’s API instead of local checkouts of these repositories. + ## Alternative Installs ### Linux or Windows 10 Subsystem for Linux