Recently in the study of using Appium to do iOS automation, so began to touch the Mac system. Record a few common commands for homebrew under the Mac's Terminal
Install (requires Ruby, but usually comes with a band):
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Search:brew search XXX 在安装之前可以先查询一下,是否有这个软件
Query: brew info XXX
mainly to see the specific information, such as the current version, dependencies, installation and other considerations
- View dependencies: Brew deps View package dependencies
- Installation:brew install XXX for installing software
Update: brew update
This updates Homebrew itself and makes sense for the next two actions-
Check for outdated (new version): brew outdated
This is a list of all installed software that can be upgraded
Upgrade: brew upgrade
Upgrade all the software that can be upgraded
Cleanup: brew cleanup
Clean up unwanted versions extremely install package cache
Several common commands for homebrew under MAC terminal (Novice notes)