brew
brew command
brew --cache
Print path to Homebrew’s download cache (usually ~/Library/Caches/Homebrew)
brew --cellar
Print path to Homebrew’s Cellar (usually /usr/local/Cellar)
brew --config
Print system configuration info
brew --env
Print Homebrew’s environment
brew --prefix
Print path to Homebrew’s prefix (usually /usr/local)
brew --prefix [formula]
Print where formula is installed
brew audit
Audit all formulae for common code and style issues
brew cleanup [formula]
Remove older versions from the Cellar for all (or specific) formulae1
brew create [url]
Generate formula for downloadable file at url and open it in $HOMEBREW_EDITOR or $EDITOR2
brew create [tarball-url] --cache
Generate formula (including MD5), then download the tarball
brew create --fink [formula]
Open Fink’s search page in your browser, so you can see how they do formula
brew create --macports [formula]
Open MacPorts’ search page in your browser, so you can see how they do formula
brew deps [formula]
List dependencies for formula
brew doctor
Check your Homebrew installation for common issues
brew edit
Open all of Homebrew for editing in TextMate
brew edit [formula]
Open [formula] in $HOMEBREW_EDITOR or $EDITOR
brew fetch --force -v --HEAD [formula]
Download source package for formula; for tarballs, also prints MD5, SHA1, and SHA256 checksums
brew home
Open Homebrew’s homepage in your browser
brew home [formula]
Opens formula ’s homepage in your browser
brew info
Print summary of installed packages
brew info [formula]
Print info for formula (regardless of whether formula is installed)
brew info --github [formula]
Open Github’s History page for formula in your browser
brew install [formula]
Install formula
brew install --HEAD [formula]
Install the HEAD version of formula (if its formula defines HEAD)
brew install --force --HEAD [formula]
Install a newer HEAD version of formula (if its formula defines HEAD)
brew link [formula]
Symlink all installed files for formula into the Homebrew prefix3
brew list [formula]
List all installed files for formula (or all installed formulae with no arguments )
brew options [formula]
Display install options specific to formula
brew outdated
List formulae that have an updated version available (brew install formula will install the newer version)
brew prune
Remove dead symlinks from Homebrew’s prefix4
brew remove [formula]
Uninstall formula
brew search
List all available formula
brew search [formula]
Search for formula in all available formulae
brew search /[formula]/
Search for /formula/ (as regex) in all available formulae
brew test [formula]
If formula defines a test, run it
brew unlink [formula]
Unsymlink formula from Homebrew’s prefix
brew update
Update formulae and Homebrew itself
brew upgrade
Install newer versions of outdated packages
brew upgrade [formula]
Install newer version of formula
brew versions [formula]
List previous versions of formulae, along with a command to checkout each version
brew analytics [state]
Display the current state of Homebrew's analytics
homebrew installation
default source
alternative sources
[!TIP|label:references:]
official
[!NOTE|label:revert back]
tsinghua (清华)
ustc (中科大)
ali (阿里)
tencent (腾讯)
homebrew bottles
[!NOTE|label:address:]
https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles
https://mirrors.ustc.edu.cn/homebrew-bottles
https://mirrors.aliyun.com/homebrew/homebrew-bottles
https://mirrors.cloud.tencent.com/homebrew-bottles
homebrew caskroom installation
home brew cask upgrade
brew install
[!NOTE|label:references:]
more on mytools/osx/belloMyOSX
check init packages install
deprecated (macvim)
brew upgradeignore specific formulas[!NOTE]
unpin
batch install
[!NOTE|label:references:]
reinstall/downgrade
[!NOTE|label:references]
error log in node@12.22 after
icu4cupgraded from 71.1 to 72.1:
get formula folder
get proper revision
from git history
via
brew extract
reinstall
[!NOTE]
without auto update :
HOMEBREW_NO_AUTO_UPDATE=1without install dependents :
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
via new tap
[!TIP|label:references:]
setup environment (tap)
install
via fully-qualified name
via url
[!NOTE]
url should be :
https://raw.githubusercontent.com/Homebrew/homebrew-core/<git-revision>/Formula/<formula-name>.rb
via local cache
via formula file (.rb)
pin formula
spotlight error
warning
tricky
[!NOTE|label:references]
check formula
check formula config files
manual install formula
[!NOTE|label:references:] How to prevent homebrew from upgrading a package?
via
brew --repo
brew debug
info
doctor
info
paths
repos
formula
brew gist-log
brew gist-log[!TIP|label:generate token via:]
get formula info
check homebrew env
force the link and overwrite everything
rerurn postinstall
check brew configure file

manual install formula
whatprovide alternatives
for brew formula
tricky
[!TIP|label:reference:]
interactive homebrew shell
list dependencies
list who depends on
list all formula dpendencies
troubleshooting
would clobber existing tag
would clobber existing tagsolution
Cask firefox-nightly is not installed.
firefox-nightly is not installed.solution
Error: Unexpected method 'appcast' called on Cask adoptopenjdk-jre
cause
solution
treesitter.c: error: call to undeclared function 'ts_language_abi_version'
[!NOTE|label:references]
error message
solution
install tree-sitter from HEAD
using
ts_language_versionto replacets_language_abi_versioninsrc/nvim/lua/treesitter.c[!NOTE|label:references]
Last updated
Was this helpful?