tldr/pages/osx/brew.md

28 lines
426 B
Markdown
Raw Normal View History

2014-02-02 18:35:06 +00:00
# brew
> Package manager for OS X.
2014-02-02 18:35:06 +00:00
- Search formula:
2014-02-02 18:35:06 +00:00
`brew search {{text}}`
- Install formula:
2014-02-02 18:35:06 +00:00
`brew install {{formula}}`
- List installed formulae [with matching name]:
2014-02-02 18:35:06 +00:00
`brew list {{[text]}}`
- Get latest version of installed formula (passing no formula updates all installed formulae):
2014-02-02 18:35:06 +00:00
`brew upgrade {{[formula]}}`
- Update brew:
2014-02-02 18:35:06 +00:00
`brew update`
2014-02-03 10:48:48 +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}}`