Introduction to the

Homebrew (BREW for short) is a software package management tool based on the Mac OS platform. It has many practical functions such as installation, uninstallation, update, view, search and so on. Package management can be implemented with a simple command, and you don’t have to worry about dependencies and file paths. It is very convenient and quick.

Install a lot of software with one command in the terminal, including development software (Git, Maven, Redis, MySQL, etc.) and software used in daily life (QQ, wechat, Baidu network disk, netease Cloud Music, etc.).

For example: Brew install Redis without interfaces: brew install Redis. Brew cask install QQ: brew cask install QQ

The installation

Brew installation depends on Xcode. If Xcode is not installed, the installation process will prompt you to install Xcode and install BREW after Xcode is installed.

Official website address Installation

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Copy the code

Domestic address installation

As the official website brew library in Github, download efficiency touching. So we use the domestic BREW library, but the software installed in the domestic BREW library may not be the latest version. Terminal execution:

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
Copy the code

Enter 1 -> Enter Y -> Enter the information as prompted -> The installation is complete.

uninstall

Terminal execution:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Copy the code

Common commands

  1. Install software, such as:brew install oclint
  2. Interface software is installed, such as:brew cask install dockert
  3. Uninstalling software, for example:brew uninstall oclint
  4. Uninstall interface software, such as:brew cask uninstall oclint
  5. Search software such as:brew search oclint
  6. Update software, such as:brew upgrade oclint
  7. View the installation list:brew list
  8. Update Homebrew:brew update
  9. View updatable software:brew outdated
  10. Update all software:brew upgrade
  11. Update a piece of software, such as:brew upgrade oclint
  12. Cleaning up old versions of software:brew cleanup

You may need to:

  1. Beautify and enhance MAC terminals: duanjw.com/posts/e15cf…
  2. Java programmer recommended software, using BREW one-click installation: duanjw.com/posts/c83de…

Original link: duanjw.com/posts/56e2c…