switch to HOME-based local 'brew'
[webi-installers/.git] / brew / README.md
1 ---
2 title: Homebrew
3 homepage: https://brew.sh
4 tagline: |
5   Brew: The Missing Package Manager for macOS (and Linux).
6 ---
7
8 ## Updating `brew`
9
10 `brew` has its own built-in upgrade management.
11
12 ```bash
13 brew update
14 brew upgrade
15 ```
16
17 ## Cheat Sheet
18
19 > Homebrew installs the stuff you need that Apple (or your Linux system) didn’t.
20
21 ### How to install CLI packages
22
23 ```bash
24 brew update
25 brew install node
26 ```
27
28 ### How to install GUI packages
29
30 ```bash
31 brew update
32 brew cask install docker
33 ```
34
35 ### Where are things installed?
36
37 ```bash
38 /usr/local/Cellar/
39 /opt/homebrew-cask/Caskroom/
40 ```
41
42 ### `brew` screwed up everything, now what?
43
44 Sometimes you're compelled against all reason to do something really stupid,
45 like `brew upgrade` or `brew update python`, and your whole system gets borked.
46
47 For _Mojave_, _Catalina_, _Big Sur_, and above:
48
49 ```bash
50 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
51 ```
52
53 For _High Sierra_ and below:
54
55 ```bash
56 /bin/bash -c ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
57 ```