2014-02-02 19:35:06 +01:00
|
|
|
# brew
|
|
|
|
|
2017-07-26 19:13:26 +01:00
|
|
|
> Package manager for macOS.
|
2019-06-03 02:06:36 +02:00
|
|
|
> More information: <https://brew.sh>.
|
2014-02-02 19:35:06 +01:00
|
|
|
|
2020-09-17 17:56:09 +04:00
|
|
|
- Search for available formulae and casks:
|
2014-02-02 19:35:06 +01:00
|
|
|
|
|
|
|
`brew search {{text}}`
|
|
|
|
|
2017-05-24 21:31:16 +01:00
|
|
|
- Install the latest stable version of a formula (use `--devel` for development versions):
|
2014-02-02 19:35:06 +01:00
|
|
|
|
|
|
|
`brew install {{formula}}`
|
|
|
|
|
2017-01-15 13:58:18 +08:00
|
|
|
- List all installed formulae:
|
2014-02-02 19:35:06 +01:00
|
|
|
|
2017-01-15 13:58:18 +08:00
|
|
|
`brew list`
|
2014-02-02 19:35:06 +01:00
|
|
|
|
2020-03-26 04:24:09 +02:00
|
|
|
- List installed formulae that are not dependencies of another installed formula:
|
|
|
|
|
|
|
|
`brew leaves`
|
|
|
|
|
2019-01-07 23:42:51 +00:00
|
|
|
- Upgrade an installed formula (if no formula name is given, all installed formulae are upgraded):
|
2014-02-02 19:35:06 +01:00
|
|
|
|
2017-01-15 13:58:18 +08:00
|
|
|
`brew upgrade {{formula}}`
|
2014-02-02 19:35:06 +01:00
|
|
|
|
2019-01-07 23:42:51 +00:00
|
|
|
- Fetch the newest version of Homebrew and of all formulae from GitHub:
|
2014-02-02 19:35:06 +01:00
|
|
|
|
|
|
|
`brew update`
|
2014-02-03 11:48:48 +01:00
|
|
|
|
2017-05-24 21:31:16 +01:00
|
|
|
- Display information about a formula (version, installation path, dependencies, etc.):
|
2017-01-15 13:58:18 +08:00
|
|
|
|
|
|
|
`brew info {{formula}}`
|
2017-01-22 13:40:53 -06:00
|
|
|
|
2019-01-07 23:42:51 +00:00
|
|
|
- Check the local Homebrew installation for potential problems:
|
2017-01-22 13:40:53 -06:00
|
|
|
|
|
|
|
`brew doctor`
|