2014-02-02 22:35:06 +04:00
|
|
|
# brew
|
|
|
|
|
2017-07-26 21:13:26 +03:00
|
|
|
> Package manager for macOS.
|
2014-02-02 22:35:06 +04:00
|
|
|
|
2017-05-24 23:31:16 +03:00
|
|
|
- Search for available formulas:
|
2014-02-02 22:35:06 +04:00
|
|
|
|
|
|
|
`brew search {{text}}`
|
|
|
|
|
2017-05-24 23:31:16 +03:00
|
|
|
- Install the latest stable version of a formula (use `--devel` for development versions):
|
2014-02-02 22:35:06 +04:00
|
|
|
|
|
|
|
`brew install {{formula}}`
|
|
|
|
|
2017-01-15 08:58:18 +03:00
|
|
|
- List all installed formulae:
|
2014-02-02 22:35:06 +04:00
|
|
|
|
2017-01-15 08:58:18 +03:00
|
|
|
`brew list`
|
2014-02-02 22:35:06 +04:00
|
|
|
|
2017-05-24 23:31:16 +03:00
|
|
|
- Update an installed formula (passing no formula updates all installed formulae):
|
2014-02-02 22:35:06 +04:00
|
|
|
|
2017-01-15 08:58:18 +03:00
|
|
|
`brew upgrade {{formula}}`
|
2014-02-02 22:35:06 +04:00
|
|
|
|
2017-05-24 23:31:16 +03:00
|
|
|
- Update brew itself:
|
2014-02-02 22:35:06 +04:00
|
|
|
|
|
|
|
`brew update`
|
2014-02-03 14:48:48 +04:00
|
|
|
|
2017-05-24 23:31:16 +03:00
|
|
|
- Display information about a formula (version, installation path, dependencies, etc.):
|
2017-01-15 08:58:18 +03:00
|
|
|
|
|
|
|
`brew info {{formula}}`
|
2017-01-22 22:40:53 +03:00
|
|
|
|
2017-05-24 23:31:16 +03:00
|
|
|
- Check your Homebrew installation for potential problems:
|
2017-01-22 22:40:53 +03:00
|
|
|
|
|
|
|
`brew doctor`
|