Mac Learning notes: Using Brew to install software

Source: Internet
Author: User

A Software Installation tool that has previously been in contact with Yum under Linux. Brew and Yum feel almost as good as installing the software.

Installation software does not know as long as the execution

Brew Search/wget*//nginx*/

/wge*/is a regular expression that needs to be included in the/

Brew, also known as homebrew, is the software package management tool on Mac OSX, it can easily install software or uninstall software in Mac, it is very convenient to use only one command.

Brew similar to the Apt-get functions of Ubuntu system

Read Catalogue

    1. Installing Brew
    2. Using Brew to install software
    3. Uninstalling Software with Brew
    4. Using Brew query Software
    5. Other Brew commands

Installing Brew

Brew's official website: http://brew.sh/index_zh-cn.html A detailed description of the use of Brew on the official website

Installation method: Open termal: Enter command in Mac:

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

Do not know why, in the country is often blocked

Using Brew to install software

A command is done, like installing Git.

Brew Install Git

such as installing wget

Brew Install wget

* Note If installation fails, you may not have enough permissions

To elevate permissions for brew:

sudo chown Root/usr/local/bin/brew

To switch to the root user:

sudo -s
Uninstalling Software with Brew

Uninstall is more convenient.

Brew Uninstall Wget

Using Brew query Software

Sometimes you don't know the name of the software you're installing, then you need to search for the name of the package first.

For example, I want to install

Brew search/wge*/

/wge*/is a regular expression that needs to be included in the/

Other Brew 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

Mac Learning notes: Using Brew to install software

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.