homebrew

Homebrew Cheatsheet #

Homebrew is a package manager for macOS that simplifies the installation and management of software.

Package Management #

Command/OptionExampleDescription
brew installbrew install wgetInstall a package
brew uninstallbrew uninstall wgetUninstall a package
brew updatebrew updateUpdate Homebrew to the latest version
brew upgradebrew upgradeUpgrade all installed packages to their latest versions
brew listbrew listList all installed packages
brew infobrew info wgetDisplay information about a package

Searching and Tapping #

Command/OptionExampleDescription
brew searchbrew search wgetSearch for a package
brew tapbrew tap homebrew/caskAdd a new tap to Homebrew
brew untapbrew untap homebrew/caskRemove a tap from Homebrew

Casks (GUI Applications) #

Command/OptionExampleDescription
brew install --caskbrew install --cask google-chromeInstall a GUI application using cask
brew uninstall --caskbrew uninstall --cask google-chromeUninstall a GUI application
brew list --caskbrew list --caskList all installed casks
brew info --caskbrew info --cask google-chromeDisplay information about a cask

Configuration and Maintenance #

Command/OptionExampleDescription
brew doctorbrew doctorCheck your system for potential issues with Homebrew
brew cleanupbrew cleanupRemove old versions of installed packages
brew services startbrew services start mysqlStart a service managed by Homebrew
brew services stopbrew services stop mysqlStop a service managed by Homebrew
brew services listbrew services listList all services managed by Homebrew and their statuses

Additional Commands #

Command/OptionExampleDescription
brew configbrew configDisplay Homebrew’s configuration
brew versionbrew versionShow the version of Homebrew

This cheatsheet covers the essential Homebrew commands and options for managing packages and applications on macOS.

homebrew

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.