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
- Install software, such as:
brew install oclint
- Interface software is installed, such as:
brew cask install dockert
- Uninstalling software, for example:
brew uninstall oclint
- Uninstall interface software, such as:
brew cask uninstall oclint
- Search software such as:
brew search oclint
- Update software, such as:
brew upgrade oclint
- View the installation list:
brew list
- Update Homebrew:
brew update
- View updatable software:
brew outdated
- Update all software:
brew upgrade
- Update a piece of software, such as:
brew upgrade oclint
- Cleaning up old versions of software:
brew cleanup
You may need to:
- Beautify and enhance MAC terminals: duanjw.com/posts/e15cf…
- Java programmer recommended software, using BREW one-click installation: duanjw.com/posts/c83de…
Original link: duanjw.com/posts/56e2c…