Home > Development > Mac OS X Package Management with Homebrew

Mac OS X Package Management with Homebrew


So I reformatted my Macbook Pro over the weekend and deceided to give Homebrew a try. So whats homebrew. Its a package management tool for Mac OS X developed in Ruby. Its really great. I can install library I want and the dependencies are also automatically installed. I really like it.

To get started make sure you install Xcode which is a requirement.

You can install by executing the following statement in the terminal.

ruby -e "$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)"

Now your done.

Ok lets install some packages now 🙂

brew install git

This will install git to /usr/local/Cellar/git. Package are installed under the /usr/local/Cellar folder and are often symlinked to /usr/local/bin.

Removing a package is also easy.

brew remove git

You can get a list of packages available from https://github.com/mxcl/homebrew/tree/master/Library/Formula/

You can also search for packages using the following command.

brew search packagename

You can also information on packages using the following command.

brew info packagename

You can also update homebrew using the following command. You must have git installed to update.

brew update

There we go.

Hope this helps.

Blair

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: