2014-02-02 19:35:06 +01:00
|
|
|
# brew
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
> Package manager for OS X.
|
2014-02-02 19:35:06 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Search formula:
|
2014-02-02 19:35:06 +01:00
|
|
|
|
|
|
|
`brew search {{text}}`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Install formula:
|
2014-02-02 19:35:06 +01:00
|
|
|
|
|
|
|
`brew install {{formula}}`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- List installed formulae [with matching name]:
|
2014-02-02 19:35:06 +01:00
|
|
|
|
|
|
|
`brew list {{[text]}}`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Get latest version of installed formula (passing no formula updates all installed formulae):
|
2014-02-02 19:35:06 +01:00
|
|
|
|
|
|
|
`brew upgrade {{[formula]}}`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Update brew:
|
2014-02-02 19:35:06 +01:00
|
|
|
|
|
|
|
`brew update`
|
2014-02-03 11:48:48 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Switch version of formula:
|
2014-02-03 11:48:48 +01:00
|
|
|
|
2014-02-03 11:58:24 +01:00
|
|
|
`brew switch {{formula}} {{version}}`
|