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 upgrade git`         | Upgrade a package           |
14 | ---                        | ---                         |
15 | `brew unlink git`          | Unlink                      |
16 | `brew link git`            | Link                        |
17 | `brew switch git 2.5.0`    | Change versions             |
18 | ---                        | ---                         |
19 | `brew list --versions git` | See what versions you have  |
20
21 ### More package commands
22
23 | Command                    | Description                 |
24 | ---                        | ---                         |
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         |
31
32 ### Global commands
33
34 | Command         | Description              |
35 | ---             | ---                      |
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     |
40
41 ### Brew Cask commands
42
43 | Command                       | Description                           |
44 | ---                           | ---                                   |
45 | `brew cask install firefox`   | Install the Firefox browser           |
46 | `brew cask list`              | List installed applications           |
47
48 Cask commands are used for interacting with graphical applications.
49
50 ## Also see
51 {: .-one-column}
52
53 * [Homebrew homepage](https://brew.sh/) _brew.sh_
54 * [Homebrew docs](https://docs.brew.sh) _docs.brew.sh_
55 {: .-also-see}