OSDN Git Service

Regular updates
[twpd/master.git] / homebrew.md
1 ---
2 title: Homebrew
3 layout: 2017/sheet
4 weight: -3
5 category: CLI
6 ---
7
8 ### Commands
9
10 | Command                    | Description                 |
11 | ---                        | ---                         |
12 | `brew install git`         | Install a package           |
13 | `brew uninstall git`       | Remove/Uninstall a package  |
14 | `brew upgrade git`         | Upgrade a package           |
15 | ---                        | ---                         |
16 | `brew unlink git`          | Unlink                      |
17 | `brew link git`            | Link                        |
18 | `brew switch git 2.5.0`    | Change versions             |
19 | ---                        | ---                         |
20 | `brew list --versions git` | See what versions you have  |
21
22 ### More package commands
23
24 | Command                    | Description                 |
25 | ---                        | ---                         |
26 | `brew info git`            | List versions, caveats, etc |
27 | `brew cleanup git`         | Remove old versions         |
28 | `brew edit git`            | Edit this formula           |
29 | `brew cat git`             | Print this formula          |
30 | `brew home git`            | Open homepage               |
31 | `brew search git`          | Search for formulas         |
32
33 ### Global commands
34
35 | Command         | Description              |
36 | ---             | ---                      |
37 | `brew update`   | Update brew and cask     |
38 | `brew upgrade`  | Upgrade all packages     |
39 | `brew list`     | List installed           |
40 | `brew outdated` | What's due for upgrades? |
41 | `brew doctor`   | Diagnose brew issues     |
42
43 ### Brew Cask commands
44
45 | Command                       | Description                           |
46 | ---                           | ---                                   |
47 | `brew install --cask firefox` | Install the Firefox browser           |
48 | `brew list --cask`            | List installed applications           |
49
50 Cask commands are used for interacting with graphical applications.
51
52 ## Also see
53 {: .-one-column}
54
55 * [Homebrew homepage](https://brew.sh/) _brew.sh_
56 * [Homebrew docs](https://docs.brew.sh) _docs.brew.sh_
57 {: .-also-see}