cheatsheets/homebrew.md

57 lines
2.1 KiB
Markdown
Raw Permalink Normal View History

2013-10-14 02:36:58 +00:00
---
title: Homebrew
2017-08-29 21:53:45 +00:00
weight: -3
2018-12-06 22:15:40 +00:00
category: CLI
2013-10-14 02:36:58 +00:00
---
### Commands
2015-05-05 16:00:33 +00:00
| Command | Description |
| --- | --- |
| `brew install git` | Install a package |
2020-01-09 19:41:11 +00:00
| `brew uninstall git` | Remove/Uninstall a package |
2015-05-05 16:00:33 +00:00
| `brew upgrade git` | Upgrade a package |
| --- | --- |
| `brew unlink git` | Unlink |
| `brew link git` | Link |
2015-09-08 13:16:39 +00:00
| `brew switch git 2.5.0` | Change versions |
2015-05-05 16:00:33 +00:00
| --- | --- |
| `brew list --versions git` | See what versions you have |
2017-08-28 15:51:51 +00:00
### More package commands
| Command | Description |
| --- | --- |
2015-05-05 16:00:33 +00:00
| `brew info git` | List versions, caveats, etc |
| `brew cleanup git` | Remove old versions |
| `brew edit git` | Edit this formula |
2017-08-28 15:51:51 +00:00
| `brew cat git` | Print this formula |
2015-05-05 16:00:33 +00:00
| `brew home git` | Open homepage |
| `brew search git` | Search for formulas |
2015-05-05 16:00:33 +00:00
### Global commands
| Command | Description |
| --- | --- |
2017-02-26 22:28:18 +00:00
| `brew update` | Update brew and cask |
| `brew upgrade` | Upgrade all packages |
2015-05-05 16:00:33 +00:00
| `brew list` | List installed |
| `brew outdated` | What's due for upgrades? |
| `brew doctor` | Diagnose brew issues |
2017-08-28 15:51:51 +00:00
2019-09-25 00:11:33 +00:00
### Brew Cask commands
| Command | Description |
| --- | --- |
2021-02-10 23:40:13 +00:00
| `brew install --cask firefox` | Install the Firefox browser |
| `brew list --cask` | List installed applications |
2019-09-25 00:11:33 +00:00
Cask commands are used for interacting with graphical applications.
2017-08-28 15:51:51 +00:00
## Also see
{: .-one-column}
* [Homebrew homepage](https://brew.sh/) _brew.sh_
* [Homebrew docs](https://docs.brew.sh) _docs.brew.sh_
{: .-also-see}