mac installation Brew Homebrew
Brew Full name Homebrew is the package management tool on Mac OSX
Homebrew installation and uninstallation tools can be done with one line of command
official address: http://brew.sh/index.html
mac comes with RubyOpen command line terminalinput:
Ruby-version
1) Installation command
Ruby-e "$ (curl-fssl https://raw.github.com/Homebrew/homebrew/go/install)"
If you have installed the following command
Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"
command line output:
2) How to use brew
Command line Input: Brew
Output:
Example usage: Brew [INFO | home | options] [FORMULA ...] Brew Install FORMULA ... Brew Uninstall FORMULA ... Brew Search [foo] brew list [FORMULA ...] Brew Update Brew upgrade [FORMULA ...] Brew Pin/unpin [FORMULA ...] Troubleshooting: Brew Doctor Brew INSTALL-VD FORMULA Brew [--env | config]brewing: BREW Create [URL] [ --no-fetch]] brew edit [FORMULA ...] Open Https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.mdFurther Help: Man Brew Brew Home
3) Installation Tools
Give me a chestnut: wget this tool
Input command: Brew install wget
:
4) Uninstall
Take the chestnuts above: wget tools
Input command Brew Uninstall wget
5) Directory of tool installation
Homebrew will install the kit into a standalone directory and soft-link the file to /usr/local .
$ cd/usr/local$ Find cellarcellar/wget/1.16.1cellar/wget/1.16.1/bin/wgetcellar/wget/1.16.1/share/man/man1/wget.1$ Ls-l Binbin/wget. /cellar/wget/1.16.1/bin/wget
All Homebrew files are installed in a predefined directory, so there is no need to worry about Homebrew installation locations.
6) Other commands
Brew List lists installed software
Brew Update Update Brew
Brew Home opens Brew's official website with a browser
Brew Info Displays software information
Brew Deps Show Package dependencies
See more commands: Https://git.io/brew-docs
Daily Diligence
Mac Install Brew Package management tool homebrew