1. Open the terminal Terminal
2. Execute the following command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then, the terminal will prompt to enter the current user password, and Nanxin can wait for the installation to end.
3. After the installation is successful, execute brew doctor to check the installation status
4. Use the specified command to install the software
brew list #View installed software
brew cask list #View installed software
brew search xxx #Search whether a software has an installation package
brew cask search xxx #Search whether a software has an installation package
brew install xxx #Install a software
brew cask install xxx #Install a software
brew uninstall xxx #Uninstall a software
brew cask uninstall xxx #Uninstall a software
brew is generally a command-line tool for installation and management. brew cask generally installs and manages software for daily use.