brew-{update,upgrade,list,outdated,search}: add page (#11389)

* brew-update: add page

* brew-upgrade: add page

* brew-list: add page

* brew-outdated: add page

* brew-search: add page
pull/23/head
Lena 2023-11-05 18:37:22 +01:00 committed by K.B.Dharun Krishna
parent 29bb3b90fb
commit bf375279fc
No known key found for this signature in database
GPG Key ID: 1B8ECA406788AFA4
5 changed files with 90 additions and 0 deletions

24
pages/common/brew-list.md Normal file
View File

@ -0,0 +1,24 @@
# brew list
> List installed formulae/casks or their files.
> More information: <https://docs.brew.sh/Manpage#list-ls-options-installed_formulainstalled_cask->.
- List all installed formulae and casks:
`brew list`
- List files belonging to an installed formula:
`brew list {{formula}}`
- List artifacts of a cask:
`brew list {{cask}}`
- List only formulae:
`brew list --formula`
- List only casks:
`brew list --cask`

View File

@ -0,0 +1,17 @@
# brew outdated
> List outdated casks and formulae.
> To upgrade everything, use `brew upgrade`.
> More information: <https://docs.brew.sh/Manpage#outdated-options-formulacask->.
- List all outdated casks and formulae:
`brew outdated`
- List only outdated formulae:
`brew outdated --formula`
- List only outdated casks:
`brew outdated --cask`

View File

@ -0,0 +1,24 @@
# brew search
> Search for casks and formulae.
> More information: <https://docs.brew.sh/Manpage#search--s-options-textregex->.
- Search for casks and formulae using a keyword:
`brew search {{keyword}}`
- Search for casks and formulae using a regular expression:
`brew search /{{regular_expression}}/`
- Enable searching through descriptions:
`brew search --desc {{keyword}}`
- Only search for formulae:
`brew search --formula {{keyword}}`
- Only search for casks:
`brew search --cask {{keyword}}`

View File

@ -0,0 +1,9 @@
# brew update
> Fetch the newest version of Homebrew and all formulae from GitHub using `git` and perform any necessary migrations.
> To upgrade all installed formulae, use `brew upgrade`.
> More information: <https://docs.brew.sh/Manpage#update-options>.
- Fetch the newest version of Homebrew and all formulae:
`brew update`

View File

@ -0,0 +1,16 @@
# brew upgrade
> Upgrade outdated formulae and casks.
> More information: <https://docs.brew.sh/Manpage#upgrade-options-outdated_formulaoutdated_cask->.
- Upgrade all outdated casks and formulae:
`brew upgrade`
- Upgrade a specific formula/cask:
`brew upgrade {{formula|cask}}`
- Print what would be upgraded, but don't actually upgrade anything:
`brew upgrade --dry-run`