2014-02-02 18:35:06 +00:00
|
|
|
# brew
|
|
|
|
|
2017-07-26 19:13:26 +01:00
|
|
|
> Package manager for macOS.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://brew.sh>.
|
2014-02-02 18:35:06 +00:00
|
|
|
|
2018-08-30 11:30:14 +01:00
|
|
|
- Search for available formulas and casks:
|
2014-02-02 18:35:06 +00:00
|
|
|
|
|
|
|
`brew search {{text}}`
|
|
|
|
|
2017-05-24 21:31:16 +01:00
|
|
|
- Install the latest stable version of a formula (use `--devel` for development versions):
|
2014-02-02 18:35:06 +00:00
|
|
|
|
|
|
|
`brew install {{formula}}`
|
|
|
|
|
2017-01-15 05:58:18 +00:00
|
|
|
- List all installed formulae:
|
2014-02-02 18:35:06 +00:00
|
|
|
|
2017-01-15 05:58:18 +00:00
|
|
|
`brew list`
|
2014-02-02 18:35:06 +00:00
|
|
|
|
2019-01-07 23:42:51 +00:00
|
|
|
- Upgrade an installed formula (if no formula name is given, all installed formulae are upgraded):
|
2014-02-02 18:35:06 +00:00
|
|
|
|
2017-01-15 05:58:18 +00:00
|
|
|
`brew upgrade {{formula}}`
|
2014-02-02 18:35:06 +00:00
|
|
|
|
2019-01-07 23:42:51 +00:00
|
|
|
- Fetch the newest version of Homebrew and of all formulae from GitHub:
|
2014-02-02 18:35:06 +00:00
|
|
|
|
|
|
|
`brew update`
|
2014-02-03 10:48:48 +00:00
|
|
|
|
2018-12-25 16:21:36 +00:00
|
|
|
- Remove old versions of installed formulae (if no formula name is given, all installed formulae are processed):
|
2018-12-24 10:38:43 +00:00
|
|
|
|
|
|
|
`brew cleanup {{formula}}`
|
|
|
|
|
2017-05-24 21:31:16 +01:00
|
|
|
- Display information about a formula (version, installation path, dependencies, etc.):
|
2017-01-15 05:58:18 +00:00
|
|
|
|
|
|
|
`brew info {{formula}}`
|
2017-01-22 19:40:53 +00:00
|
|
|
|
2019-01-07 23:42:51 +00:00
|
|
|
- Check the local Homebrew installation for potential problems:
|
2017-01-22 19:40:53 +00:00
|
|
|
|
|
|
|
`brew doctor`
|