diff --git a/pages/common/brew-autoremove.md b/pages/common/brew-autoremove.md new file mode 100644 index 000000000..86c2ec78c --- /dev/null +++ b/pages/common/brew-autoremove.md @@ -0,0 +1,12 @@ +# brew autoremove + +> Remove unused formulae previously installed as dependencies. +> More information: . + +- Remove all unused formulae: + +`brew autoremove` + +- Print what would be removed, but don't actually remove anything: + +`brew autoremove --dry-run` diff --git a/pages/common/brew-cask.md b/pages/common/brew-cask.md deleted file mode 100644 index ad1ed223b..000000000 --- a/pages/common/brew-cask.md +++ /dev/null @@ -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: . - -- 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}}` diff --git a/pages/common/brew-install.md b/pages/common/brew-install.md new file mode 100644 index 000000000..cf715edd7 --- /dev/null +++ b/pages/common/brew-install.md @@ -0,0 +1,16 @@ +# brew install + +> Install a Homebrew formula or cask. +> More information: . + +- 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}}` diff --git a/pages/common/brew-uninstall.md b/pages/common/brew-uninstall.md new file mode 100644 index 000000000..5cabecfa1 --- /dev/null +++ b/pages/common/brew-uninstall.md @@ -0,0 +1,13 @@ +# brew uninstall + +> Uninstall a Homebrew formula/cask. +> Use `brew autoremove` to remove unused dependencies afterwards. +> More information: . + +- Uninstall a formula/cask: + +`brew uninstall {{formula|cask}}` + +- Uninstall a cask and remove all associated files: + +`brew uninstall --zap {{cask}}` diff --git a/pages/common/brew.md b/pages/common/brew.md index 4922abf4b..1f1b34c69 100644 --- a/pages/common/brew.md +++ b/pages/common/brew.md @@ -1,7 +1,8 @@ # brew -> Package manager for macOS and Linux. -> More information: . +> Homebrew - a package manager for macOS and Linux. +> Some subcommands such as `install` have their own usage documentation. +> More information: . - 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}}`