Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If a Mac OS X user already has HomeBrew installed, is there any advantage to installing Git via the .dmg files for OS X linked from the Git download page rather than via HomeBrew?

share|improve this question
As post-script to my answer: Now Git OS X is on 1.7.5, and Homebrew provides Just saw it thanks to brew upgrade and don't need to care about downloading an installer and running it etc. :-) – Daniel Beck May 5 '11 at 18:07
up vote 5 down vote accepted

IIRC, Git is required for Homebrew to work, so you most likely already have it. Let's ignore that for a while...

From the installer readme:

This installs git to /usr/local/git. Root access is required.

and creates a new directory tree containing bin, lib, share etc. there.

It also includes some Perl and Python stuff, probably dependencies so it's self-contained. You can use suspicious package to see what's inside.

There is no real package management, i.e. you likely need to re-download und run the installer for all updates, and the uninstaller is a very short shell script.

The Homebrew version installs to /usr/local, distributing its files to bin and the other folders there, like any Homebrew-installed program. It's managed by Homebrew and can be uninstalled and upgraded using it. It can also profit from possible dependencies you already installed using Homebrew, saving disk space. Depending on how you set up Homebrew, it might be possible to install/update git without entering the root password.

I can't see any reason to install git from the dmg. It's more cumbersome to install and upgrade, it's an older version (@slhck is correct), and you already have it if you use Homebrew anyway.

share|improve this answer
Now Git OS X is on 1.7.5, and Homebrew provides – Daniel Beck May 5 '11 at 18:05
Hm, seems that although Git (isn't listed as a requirement)[] for Homebrew, installing Homebrew causes Git to be installed if Git isn't already installed. That in itself doesn't answer my question; but your other points do, I think, tip the balance in favour of Homebrew rather than the .dmg - assuming the user already has Homebrew installed. – sampablokuper Mar 31 '13 at 19:09

I don't think there's much of a difference, although running

brew install git

works unattended and is way faster and easier than

  • navigating to the Git page you linked
  • finding the link for OS X
  • finding the link for your system
  • downloading the .dmg file
  • opening it
  • double clicking the installer app
  • and running through the installer, accepting terms, selecting install location, etc.

Apart from that, Homebrew currently seems to have Git 1.7.5, whereas the downloadable Git OS X installer only has

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .