2014-02-02 18:35:06 +00:00
|
|
|
# brew
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Package manager for OS X.
|
2014-02-02 18:35:06 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Search formula:
|
2014-02-02 18:35:06 +00:00
|
|
|
|
|
|
|
`brew search {{text}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Install formula:
|
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
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Get latest version of installed formula (passing no formula updates all installed formulae):
|
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
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Update brew:
|
2014-02-02 18:35:06 +00:00
|
|
|
|
|
|
|
`brew update`
|
2014-02-03 10:48:48 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Switch version of formula:
|
2014-02-03 10:48:48 +00:00
|
|
|
|
2014-02-03 10:58:24 +00:00
|
|
|
`brew switch {{formula}} {{version}}`
|
2017-01-15 05:58:18 +00:00
|
|
|
|
|
|
|
- Display information about formula, which contains formula version, installed path, dependencies, etc.:
|
|
|
|
|
|
|
|
`brew info {{formula}}`
|