Homebrew
-
Homebrew-Cask
- https://caskroom.github.io/
- https://github.com/caskroom/homebrew-cask/blob/master/USAGE.md
- Get Homebrew Cask:
brew tap caskroom/cask
- List available Casks:
brew cask search
or visit https://caskroom.github.io/search and use*
as search string - List outdated Casks:
brew cask outdated
- Update Casks (just Casks repo, not Casks themselves):
brew update
- Install app with Cask:
brew cask install app-name
- Upgrade single app with Cask:
brew cask reinstall app-name
- Upgrade all apps with Cask:
brew cask upgrade
- TODO: Test upgrade single app with Cask (thinking this may update all Cask apps):
brew cask upgrade app-name
-
Maintenance
- Run three commands below to get Homebrew and formulae 💯
- Update formulae and Homebrew:
brew update
(updates brew cask repo also) - Upgrade everything:
brew upgrade
- Uninstall old formulae:
brew cleanup
orbrew cleanup <formula>
- Brew Doctor:
brew doctor
-
Brew Cask Error: Unknown command: cask
- Recommended by @adidalal in a GitHub Issue thread:
-
You shouldn't need to tap anything manually, we're now kept up-to-date with Homebrew itself.
-
To make sure/if you have any issues, first try:
brew update; brew cleanup; brew cask cleanup brew uninstall --force brew-cask; brew update
- Performing the above steps along with ensuring the Xcode command line tools were installed resolved my Brew Cask issues :)
sudo xcode-select --install
Commands
- List Packages:
brew list
- Get Package Info
brew info package_name
- Pin Package (lock at current version):
brew pin package_name
- Uninstall Package:
brew uninstall package_name
- Remove cask & prefs:
brew cask zap cask_name
Update Homebrew & Packages
- Update Homebrew:
brew update
- Update Packages:
brew upgrade
Services
- List services:
brew services list
- Start service:
brew services start SERVICE_NAME
- Stop service:
brew services start SERVICE_NAME
- Restart service:
brew services restart SERVICE_NAME
Published