Common software installation tools for Mac systems are homebrew, the most commonly used commands are:
Install (requires Ruby):
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/Go/install)"
Search:brew search MySQL
Query: brew info mysql
mainly to see the specific information, such as the current version, dependencies, installation and other considerations
Update: brew update
This updates Homebrew itself and makes sense for the next two actions-
Check for outdated (new version): This is a brew outdated
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
That's all it's used for. In general, if you are looking for a new version (not to upgrade your discomfort), then your most common sequence of operations is this:
brew update # 更新 Homebrew 的信息brew outdated # 看一下哪些软件可以升级brew upgrade <xxx> # 如果不是所有的都要升级,那就这样升级指定的brew upgrade; brew cleanup # 如果都要升级,直接升级完然后清理干净
Mac HomeBrew Common Commands