Homebrew
🛠Tool
brew (command line tools)
See which packages you have:
brew listSee which packages are available:
brew searchGet more info about the node package:
brew info nodeSee which packages have updates available:
brew outdatedbrew cleanup
Dry-run of what would be deleted (really delete without -n):
brew cleanup -nUpdate
Pin (prevent from upgrading)
Don’t include a certain application when running brew upgrade:
brew pin mysqlInclude it again:
brew unpin mysqlbrew services
brew services start postgresql is a wrapper for
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
-
List services which run at startup:
brew services list -
To get instructions on how to use
brew services:brew services help
brew casks (UI applications)
Update all Homebrew Casks
brew update
brew cask list | xargs brew cask install --forceTo install a specific app called <MY_APP>:
brew update
brew cask uninstall <MY_APP> && brew cask install <MY_APP>Issues
php version
When facing this issue
Failed loading /usr/local/opt/php@7.0/lib/php/20151012/opcache.so: dlopen(/usr/local/opt/php@7.0/lib/php/20151012/opcache.so, 9): image not foundthe following helped:
rm -rf /usr/local/etc/php/7.0/
brew uninstall php@7.0 && brew install php@7.0Discuss on Twitter ● Improve this article: Edit on GitHub