What is Homebrew? Installation and use of Homebrew
- Homebrew 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.
Second, Homebrew installation
1. Open the terminal. 2.
Command 1: / usr/bin/ruby - e "$(curl - fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" (this command will not make an error, If an error trying to use the command 2) command 2: / bin/ZSH - c "$(curl - fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" (this is a script, You can also install Homebrew.Copy the code
3. Uninstall command:
$ cd `brew --prefix`
$ rm -rf Cellar
$ brew prune
$ rm `git ls-files`
$ rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions
$ rm -rf .git
$ rm -rf ~/Library/Caches/Homebrew
Copy the code
3. Use of Homebrew
Check the brew help command. 2. Install any package: brew install, eg: brew install node 3. Uninstall any package: brew uninstall, eg: brew uninstall git 4 Query available packages: brew Search 5. Query installed packages: brew list 6. Brew info: brew info: brew update: brew update 8.Homebrew help: brew -h 8. Check brew version: breW-v 10. Update brew version: brew Update 11. ZSHRC -e, open ~/.bash_profile-e
Reference article: Introduction and Use of Homebrew Installation and Use of Homebrew in the Mac How to install Homebrew automatically
The original link: www.jianshu.com/p/f4c9cf073…