Skip to content
finn edited this page Apr 20, 2011 · 52 revisions

How do I update my local packages?

First update the formulas and homebrew itself:

brew update

Afterwards install newer versions of updated packages with:

brew install $(brew outdated)

or upgrade all formulas with:

brew upgrade

You can find out what changed by:

cd `brew —prefix`
git remote add origin https://github.com/mxcl/homebrew.git
git fetch origin
git diff HEAD..origin/master —summary

Having trouble running brew update after a fresh install?

See https://github.com/mxcl/homebrew/issues/5128

Where does stuff get downloaded?

`brew --cache`

Which is usually: ~/Library/Caches/Homebrew

My GUI .apps don’t find /usr/local/bin utilities!

GUI apps on OS X don’t have /usr/local/bin in their PATH by default. You fix this by following these instructions: http://developer.apple.com/library/mac/#qa/qa1067/_index.html.

How do I contribute to Homebrew?

See the Formula Cookbook.

bad interpreter: /usr/bin/ruby^M: no such file or directory

You cloned with git, and your git configuration is set to use Windows line endings. Don’t do that.

bad interpreter: /usr/bin/ruby

You don’t have a /usr/bin/ruby or it is not executable. It’s not recommended to let this persist, you’d be surprised how many .apps, tools and scripts expect your OS X provided files and directories to be unmodified since OS X was installed.

Why are you compiling everything?

We optimise for your Mac. But we try not compile stuff that takes ages but the availability of binary packages dictates that. We don’t host our own binaries to keep costs zero. If you want to donate hosting to the project, please let mxcl know.

How about Gentoo Prefix?

Gentoo Prefix seems pretty cool, but it isn’t optimised specfically for Mac users and it duplicates worse than MacPorts, including gcc and all that jazz. Otherwise I’d use it.

How do I get a formula from someone else’s branch?

gem install github
cd $(brew --prefix)
github pull someone_else

someone_else is the github username. It assumes a branch named master, if you want a different branch then do github pull someone_else/branch_name.

Clone this wiki locally