HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

brew — Homebrew - a package manager for macOS and Linux. Some subcommands such as `install` have their own

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandbrewclipackageformacoshomebrewmanager

Problem

How to use the brew command: 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>.

Solution

brew — 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:
brew install {{formula|cask}}


List all installed formulae and casks:
brew list


Upgrade an installed formula or cask (if none is given, all installed formulae/casks are upgraded):
brew upgrade {{formula|cask}}


Fetch the newest version of Homebrew and of all formulae and casks from the Homebrew source repository:
brew update


Show formulae and casks that have a more recent version available:
brew outdated


Search for available formulae (i.e. packages) and casks (i.e. native macOS .app packages):
brew search {{text}}


Display information about a formula or a cask (version, installation path, dependencies, etc.):
brew info {{formula|cask}}


Check the local Homebrew installation for potential problems:
brew doctor

Code Snippets

Install the latest stable version of a formula or cask

brew install {{formula|cask}}

List all installed formulae and casks

brew list

Upgrade an installed formula or cask (if none is given, all installed formulae/casks are upgraded)

brew upgrade {{formula|cask}}

Fetch the newest version of Homebrew and of all formulae and casks from the Homebrew source repository

brew update

Show formulae and casks that have a more recent version available

brew outdated

Context

tldr-pages: common/brew

Revisions (0)

No revisions yet.