mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
brew: update page; brew-*: add page; brew-cask: remove page (#11376)
This commit is contained in:
parent
4721f0c315
commit
6bfbb2136f
5 changed files with 45 additions and 40 deletions
12
pages/common/brew-autoremove.md
Normal file
12
pages/common/brew-autoremove.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# brew autoremove
|
||||
|
||||
> Remove unused formulae previously installed as dependencies.
|
||||
> More information: <https://docs.brew.sh/Manpage#autoremove---dry-run>.
|
||||
|
||||
- Remove all unused formulae:
|
||||
|
||||
`brew autoremove`
|
||||
|
||||
- Print what would be removed, but don't actually remove anything:
|
||||
|
||||
`brew autoremove --dry-run`
|
|
@ -1,37 +0,0 @@
|
|||
# brew --cask
|
||||
|
||||
> CLI workflow for the administration of macOS applications distributed as binaries.
|
||||
> This command was previously called `brew cask`, it has been deprecated in favor of the `brew --cask` flag.
|
||||
> More information: <https://github.com/Homebrew/homebrew-cask>.
|
||||
|
||||
- Search for formulas and casks:
|
||||
|
||||
`brew search {{text}}`
|
||||
|
||||
- Install a cask:
|
||||
|
||||
`brew install --cask {{cask_name}}`
|
||||
|
||||
- List all installed casks:
|
||||
|
||||
`brew list --cask`
|
||||
|
||||
- List installed casks that have newer versions available:
|
||||
|
||||
`brew outdated --cask`
|
||||
|
||||
- Upgrade an installed cask (if no cask name is given, all installed casks are upgraded):
|
||||
|
||||
`brew upgrade --cask {{cask_name}}`
|
||||
|
||||
- Uninstall a cask:
|
||||
|
||||
`brew uninstall --cask {{cask_name}}`
|
||||
|
||||
- Uninstall a cask and remove related settings and files:
|
||||
|
||||
`brew zap --cask {{cask_name}}`
|
||||
|
||||
- Display information about a given cask:
|
||||
|
||||
`brew info --cask {{cask_name}}`
|
16
pages/common/brew-install.md
Normal file
16
pages/common/brew-install.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# brew install
|
||||
|
||||
> Install a Homebrew formula or cask.
|
||||
> More information: <https://docs.brew.sh/Manpage#install-options-formulacask->.
|
||||
|
||||
- Install a formula/cask:
|
||||
|
||||
`brew install {{formula|cask}}`
|
||||
|
||||
- Build and install a formula from source (dependencies will still be installed from bottles):
|
||||
|
||||
`brew install --build-from-source {{formula}}`
|
||||
|
||||
- Download the manifest, print what would be installed but don't actually install anything:
|
||||
|
||||
`brew install --dry-run {{formula|cask}}`
|
13
pages/common/brew-uninstall.md
Normal file
13
pages/common/brew-uninstall.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# brew uninstall
|
||||
|
||||
> Uninstall a Homebrew formula/cask.
|
||||
> Use `brew autoremove` to remove unused dependencies afterwards.
|
||||
> More information: <https://docs.brew.sh/Manpage#uninstall-remove-rm-options-installed_formulainstalled_cask->.
|
||||
|
||||
- Uninstall a formula/cask:
|
||||
|
||||
`brew uninstall {{formula|cask}}`
|
||||
|
||||
- Uninstall a cask and remove all associated files:
|
||||
|
||||
`brew uninstall --zap {{cask}}`
|
|
@ -1,7 +1,8 @@
|
|||
# brew
|
||||
|
||||
> Package manager for macOS and Linux.
|
||||
> More information: <https://brew.sh>.
|
||||
> Homebrew - a package manager for macOS and Linux.
|
||||
> Some subcommands such as `install` have their own usage documentation.
|
||||
> More information: <https://docs.brew.sh/Manpage>.
|
||||
|
||||
- Install the latest stable version of a formula or cask (use `--devel` for development versions):
|
||||
|
||||
|
@ -23,7 +24,7 @@
|
|||
|
||||
`brew outdated`
|
||||
|
||||
- Search for available formulae (i.e. packages) and casks (i.e. native packages):
|
||||
- Search for available formulae (i.e. packages) and casks (i.e. native macOS `.app` packages):
|
||||
|
||||
`brew search {{text}}`
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue