MacPorts to Homebrew : New Packaging system for Mac OS X

EDIT: This blog and blog post is moved to blog.abhiomkar.in

I just wanted to post a blog on Homebrew because, I started loving it already. Homebrew is the new modern package management system for Mac OS X wich beats MacPorts. Yah! Homebrew is faster.

Homebrew is a Packaging system for Mac OS X 10.5 and above; heavy optimisations, no redundant packages and a bonus beer theme.

Here how you can install Homebrew on your Mac:

I prefer installing homebrew in /usr/local directory.

sudo curl -L http://github.com/mxcl/homebrew/tarball/master | sudo tar xz --strip 1 -C /usr/local

to avoid using sudo when installing packages, change the owner recursively on /usr/local directory

sudo chown -R `whoami` /usr/local

That’s it. Homebrew installed.

Now, Let’s install wget using homebrew

MacBook:~ abhinay$ brew install wget
==> Downloading http://ftp.gnu.org/gnu/wget/wget-1.12.tar.bz2
File already downloaded and cached to /Users/abhinay/Library/Caches/Homebrew
==> ./configure --disable-debug --prefix=/usr/local/Cellar/wget/1.12
==> make install
/usr/local/Cellar/wget/1.12: 9 files, 784K, built in 37 seconds

Really easy! isn’t it?

Have fun!

Note:
If you are facing problem because of MacPorts, try to uninstall it – Uninstall Instructions

and Do check out homebrew homepage on github: http://github.com/mxcl/homebrew

And one more thing, You should have xcode installed on your Mac – if already don’t have xcode, you can download from here – http://developer.apple.com/technology/xcode.html (Or you can install xcode from your second installation CD of Mac OS X)

This entry was posted in Uncategorized. Bookmark the permalink.

20 Responses to MacPorts to Homebrew : New Packaging system for Mac OS X

  1. Abhinay says:

    You are too good man! Totally stole my thunder with the username :P haha. carry on.

    I stumbled on this blog, and I’m glad a fellow by my name is a linux buff. kudos.

  2. Abhinay says:

    @Abhinay :P

    Thanks.

  3. Is there any place where I can see list of packages homebrew can install?
    Something like – http://www.macports.org/ports.php?by=all

  4. Rahul says:

    Thanks Abhinay. :-)

  5. compulsionstar says:

    i see here that you say if you have problems uninstall macports. Does this mean that it is at my own risk to install homebrew on top (or side by side) of macports? i have macports now but i don’t see anybody saying that they are okay to run together. or will this be more like fink and macports?

  6. Lennart Jütte says:

    >> sudo chown -R `whoami` /usr/local

    You are kidding, right? That’s a very bad idea!

  7. Rahul Bansal says:

    This works for sure!
    Why do you think this is bad idea?

  8. Pingback: » Some Links to Remember for Later The Laudun Log

  9. Pingback: Are my permissions for /usr/local/ correct? | CL-UAT

  10. Pingback: Are my permissions for /usr/local/ correct? | Ask questions about Apple

  11. Pingback: Are my permissions for /usr/local/ correct? | XL-UAT

  12. Pingback: » Apple:Are my permissions for /usr/local/ correct?

  13. Pingback: Are my permissions for /usr/local/ correct? - PhotoLens

  14. Pingback: Are my permissions for /usr/local/ correct?

Comments are closed.