Install Homebrew

  1. Open theHomebrew website, copy the download instruction to the terminal termianl

  2. If the following red line error is reportedExplanation needs science to get online, the method that science gets online is a lot of, do not expand here, I use company’s net commonly (already turned over wall) download

  3. Start the download

  4. Verify that Homwbrew is installed

  5. After Homebrew is successfully installed, a directory is automatically created/usr/local/CellarTo store Homebrew installed programs such as Watchman

Using Hmoebrew

  • brew updateUpdate Homwbrew itself
  • brew listDisplays installed packages
  • brew upgradeUpgrade all installed packages
  • Brew UpgradeUpgrade specified package
  • Brew Search [package name]Search for specified packages
  • Brew Info [package name]Viewing Package Information
  • Brew installInstall specified packages
  • Brew UninstallUninstalling the specified package
  • brew --helpSee the help
  • brew doctorDiagnose problems with Homebrew
  • brew outdatedCheck for outdated packages. This will list which of all installed packages can be upgraded
  • Brew outdated [package name]Checks whether the specified package has a new version
  • brew cleanupClear the software packages of earlier versions and the installation package cache
  • Brew cleanupClears the old version of the specified package and its installation package cache

Install Homebrew Cask

  1. Open theHomebrew Cask, copy the download instruction to the terminal termianl
  2. If the macOS version is too old, there will be problems. I used macOS High Sierra 10.13.6 before and had the following problems
  3. Later, another macOS Catalina 10.15.4 was used and the installation procedure was normal