Mac Pro installs Homebrew package management tools

Source: Internet
Author: User

Linux system has a common problem of egg pain, software package depends on the current mainstream of the two major releases have their own solution, Red hat has yum, Ubuntu has apt-get.

There are no similar things in Mac OS, but there is a third-party library support:Homebrew. Homebrew Short Brew, is Mac OSX software package management tool, can be conveniently installed in the Mac software or uninstall software, you can say that homebrew is the Mac Apt-get, yum artifact.

Homebrew Installation

1, first to install Xcode, in the AppStore by searching for the keyword Xcode to find software and installation, the current version of 7.3.1 about 3.8G.

2. Execute the following command line in the terminal

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

Execution of this command sometimes returns a 400 error, estimated to be wall, but after a few minutes retry and OK again.

Homebrew use

Search Software: Brew search software name, such as Brew search wget

Install software: Brew install software name, such as Brew install wget

Uninstall software: Brew remove software name, such as brew remove wget

More of it? Go to the official website and dig it http://brew.sh/index_zh-cn.html

" Software Installation directory "

Homebrew will install the kit into a standalone directory (the total directory is /usr/local/cellar), so you don't have to worry about where the software is installed and soft-link the file to /usr/local/bin,如:

$ pwd/usr/local/cellar$ lltotal 0drwxr-xr-x   8 jianbao  admin  272  5 00:12.  /drwxrwxr-x  Admin  782  5 25 00:30.. /drwxr-xr-x   3 Jianbao  admin  102  5 16:59 mcrypt/drwxr-xr-x   3 jianbao  admin  102  5 16:59 mhash/drwxr-xr-x   3 jianbao  admin  102  5 00:38 openssl/drwxr-xr-x   3 Jianbao  Admin  102  5 00:09 readline/drwxr-xr-x   3 jianbao  admin  102  5 00:09 sqlite/ Drwxr-xr-x   3 Jianbao  admin  102  5 00:12 subversion/

Mac Pro installs Homebrew package management tools

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.