Mac Homebrew Installation

Source: Internet
Author: User
Tags install homebrew

Http://book.51cto.com/art/201107/278761.htm

3.2.3 Installing Git using Homebrew

Mac OS X has several package managers for managing the installation and upgrade of some open source software on Mac OS X. There are traditional macports, Fink, and a much simpler and easier-to-use Homebrew③. Here's how to install Git with the Homebrew Package Manager, which is compiled with the source package.

Homebrew is developed in the Ruby language to support the deployment and management of thousands of open source software in Mac OS x. The Homebrew project is hosted on Github with the URL: https://github.com/mxcl/homebrew.

The first is to install Homebrew and execute the following command:

    1. $ ruby-e \
    2. "$ (Curl-fssl https://gist.github.com/
      RAW/323731/INSTALL_HOMEBREW.RB) "

After the installation is complete, Homebrew's main program is installed in/usr/local/bin/brew and the installation instructions for all software supported by Homebrew are saved under directory/usr/local/library/formula/.

Execute the following command to install Git via homebrew.

    1. $ Brew Install Git

With Homebrew installation, Git is installed in/usr/local/cellar/git/<version>/, and the executable program automatically creates symbolic connections in the/usr/local/bin directory, which can be accessed directly from the terminal program.

The Brew List command allows you to view the installed open source packages.

    1. $ brew List
    2. Git

You can also view the detailed path and installation content for a package installation.

      1. $ brew List git
      2. /usr/local/cellar/git/1.7.4.1/bin/gitk
      3. ...

Mac Homebrew Installation

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.