Install Brew Package management tool on Mac

Source: Internet
Author: User
Tags install brew

  The package management tool on Mac is a very handy tool for developers to manage packages efficiently.

  So this blog will simply talk about the installation of brew and some basic commands.

  Brew full name is called homebrew.

  

1. First, the installation of brew:

Installing on a Mac requires Ruby to install, and Ruby is already installed on your Mac, and we can test it with commands.

  

Ruby-version

  After making sure Ruby is OK, install brew with the following command.

Ruby-e "$ (curl-fssl https://raw.github.com/Homebrew/homebrew/go/install)"  

  If you have already installed it, you can use the following command:

Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"  

  2. The following is the installation of the software, for example, we need to install wget, can be implemented by the following command:

Brew Install wget

  If we need to uninstall this tool, we can use the following command:

  3. There are some commonly used commands in daily use:

Brew list  lists installed software brew  update update brewbrew home via browser access Brew website Brew Info  display software information brew deps show dependencies between software

  4. About the Software installation directory:

The brew-installed software will be placed separately in a directory and mapped to/usr/local.

All Homebrew files are installed in a predefined directory, so there is no need to worry about Homebrew installation locations.

  

  

Install Brew Package management tool on Mac

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.