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)
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.
@Abhinay :P
Thanks.
Is there any place where I can see list of packages homebrew can install?
Something like – http://www.macports.org/ports.php?by=all
Hi Rahul, You can just type ‘brew search’ command or you can check all package formulas online here – http://github.com/mxcl/homebrew/tree/master/Library/Formula/
Cheers,
Abhinay
You can also do “brew server” and then open a web browser to the URL printed.
That’s good Idea too!
we need to install ‘sinatra’ for this to work.
“gem install sinatra” to install.
PS:
My blog is moved to http://blog.abhiomkar.in/2010/01/02/macports-to-homebrew-new-packaging-system-for-mac-os-x
Thanks Abhinay. :-)
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?
Hi, You should not be having any problems uninstalling MacPorts unless you don’t have much packages installed with MacPorts. However, It is not compulsory to uninstall. Homebrew will not do any harm to your system though.
Cheers!
PS:
My blog is moved to http://blog.abhiomkar.in/2010/01/02/macports-to-homebrew-new-packaging-system-for-mac-os-x
>> sudo chown -R `whoami` /usr/local
You are kidding, right? That’s a very bad idea!
This works for sure!
Why do you think this is bad idea?
Rahul, Sorry, that must be a spam comment. I should disable comments on each post. My old blog is flooding with lots of spam comments.
Oops. I guess he quoted “command” itself.
That is why I thought it may not be spam.
Pingback: » Some Links to Remember for Later The Laudun Log
Pingback: Are my permissions for /usr/local/ correct? | CL-UAT
Pingback: Are my permissions for /usr/local/ correct? | Ask questions about Apple
Pingback: Are my permissions for /usr/local/ correct? | XL-UAT
Pingback: » Apple:Are my permissions for /usr/local/ correct?
Pingback: Are my permissions for /usr/local/ correct? - PhotoLens
Pingback: Are my permissions for /usr/local/ correct?