tldr/pages/osx/brew.md

32 lines
527 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}}`
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
- 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
- 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}}`
2017-01-15 05:58:18 +00:00
- Display information about formula, which contains formula version, installed path, dependencies, etc.:
`brew info {{formula}}`