tips: 本人未安装xcode
1. Open the terminal
2. Install brew on mac:
- Excuting an order:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
- The official website of brew: http://brew.sh/
- Common commands of brew:
brew update
: Check and upgrade.brew outdated
: Check whether the installed software is out of date and needs to be upgraded.brew upgrade
: Upgrade all installed software. If only a certain software is to be upgraded, just follow it with the software name.brew uninstall 软件名 –force
: Uninstall a certain software.brew cleanup
: Clean up old versions of all installed software.
What needs to be explained for the cleanup command is that Brew will not uninstall the old version of the software by default.brew –cache
: View the downloaded directory of the installation package of the installed software, and you can clean this directory regularly.brew info 软件名
: Query information about a certain installed software.