Mac Install Brew package management tool homebrew

Source: Internet
Author: User
Tags install brew

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.