2014-02-02 19:35:06 +01:00
|
|
|
# brew
|
|
|
|
|
2017-07-26 20:13:26 +02:00
|
|
|
> Package manager for macOS.
|
2014-02-02 19:35:06 +01:00
|
|
|
|
2017-05-24 22:31:16 +02:00
|
|
|
- Search for available formulas:
|
2014-02-02 19:35:06 +01:00
|
|
|
|
|
|
|
`brew search {{text}}`
|
|
|
|
|
2017-05-24 22:31:16 +02:00
|
|
|
- Install the latest stable version of a formula (use `--devel` for development versions):
|
2014-02-02 19:35:06 +01:00
|
|
|
|
|
|
|
`brew install {{formula}}`
|
|
|
|
|
2017-01-15 06:58:18 +01:00
|
|
|
- List all installed formulae:
|
2014-02-02 19:35:06 +01:00
|
|
|
|
2017-01-15 06:58:18 +01:00
|
|
|
`brew list`
|
2014-02-02 19:35:06 +01:00
|
|
|
|
2017-09-27 13:34:06 +02:00
|
|
|
- Update an installed formula (if no formula name is given, all installed formulae are updated):
|
2014-02-02 19:35:06 +01:00
|
|
|
|
2017-01-15 06:58:18 +01:00
|
|
|
`brew upgrade {{formula}}`
|
2014-02-02 19:35:06 +01:00
|
|
|
|
2017-08-23 11:05:50 +02:00
|
|
|
- Fetch the newest version of Homebrew and all formulae from GitHub:
|
2014-02-02 19:35:06 +01:00
|
|
|
|
|
|
|
`brew update`
|
2014-02-03 11:48:48 +01:00
|
|
|
|
2017-09-16 17:57:22 +02:00
|
|
|
- Show formulae that have a more recent version available:
|
2017-08-23 11:05:50 +02:00
|
|
|
|
|
|
|
`brew outdated`
|
|
|
|
|
2017-05-24 22:31:16 +02:00
|
|
|
- Display information about a formula (version, installation path, dependencies, etc.):
|
2017-01-15 06:58:18 +01:00
|
|
|
|
|
|
|
`brew info {{formula}}`
|
2017-01-22 20:40:53 +01:00
|
|
|
|
2017-05-24 22:31:16 +02:00
|
|
|
- Check your Homebrew installation for potential problems:
|
2017-01-22 20:40:53 +01:00
|
|
|
|
|
|
|
`brew doctor`
|