10 | Command | Description |
12 | `brew install git` | Install a package |
13 | `brew upgrade git` | Upgrade a package |
15 | `brew unlink git` | Unlink |
16 | `brew link git` | Link |
17 | `brew switch git 2.5.0` | Change versions |
19 | `brew list --versions git` | See what versions you have |
21 ### More package commands
23 | Command | Description |
25 | `brew info git` | List versions, caveats, etc |
26 | `brew cleanup git` | Remove old versions |
27 | `brew edit git` | Edit this formula |
28 | `brew cat git` | Print this formula |
29 | `brew home git` | Open homepage |
30 | `brew search git` | Search for formulas |
34 | Command | Description |
36 | `brew update` | Update brew and cask |
37 | `brew list` | List installed |
38 | `brew outdated` | What's due for upgrades? |
39 | `brew doctor` | Diagnose brew issues |
41 ### Brew Cask commands
43 | Command | Description |
45 | `brew cask install firefox` | Install the Firefox browser |
46 | `brew cask list` | List installed applications |
48 Cask commands are used for interacting with graphical applications.
53 * [Homebrew homepage](https://brew.sh/) _brew.sh_
54 * [Homebrew docs](https://docs.brew.sh) _docs.brew.sh_