Using Homebrew to install software with OS X

Homebrew is an easy to use tool for installing software to OS X.
It’s a bit like debians apt but relies on git and ruby.
I use it to install application servers like wildfly, databases or tools like maven.


ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

To update your package index use ‘update’:

volkers-imac:~ mupfel$> brew update

Search for the software you want:

For example install mongodb:

volkers-imac:~ mupfel$ brew search mongodb
mongodb
volkers-imac:~ mupfel$ brew install mongodb
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/mongodb-2.4.9.mavericks.bottle.tar.gz
######################################################################## 100,0%
==> Pouring mongodb-2.4.9.mavericks.bottle.tar.gz
==> Caveats
To have launchd start mongodb at login:
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
Then to load mongodb now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
Or, if you don't want/need launchctl, you can just run:
mongod
==> Summary
🍺 /usr/local/Cellar/mongodb/2.4.9: 18 files, 271M
volkers-imac:~ mupfel$>
Installed in a matter of seconds w/o hassle, permission problems etc.

You can even create and share your own packages very easily – this is described in detail on the project homepage.

Advertisements

About javavolker71

when i do not write posts on this blog, don't work on or try to break my code i'm spending a reasonable amount of time
This entry was posted in Apple, Java, OS X, shell and tagged , , , , , . Bookmark the permalink.

3 Responses to Using Homebrew to install software with OS X

  1. Pingback: Installing Wildfly on Mac OS X | javavolker

  2. Pingback: Delete entire database from mongo from cmd line | javavolker

  3. Pingback: Installing Docker on OS X Homebrew | javavolker

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