This is the missing package manager in Mac. It downloads, and installs ruby, gradle, scala, sbt, etc with few command line. I was really giddy to make this discovery couple of days ago while trying to learn Scala via coursera.
To install brew:
1. Open terminal, and run the following command.
2. ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
this will download brew into /usr/local/Cellar
In this location it will contain all the other downloads.
or use
- mkdir homebrew && curl -L https://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C homebrew
you are good to go, and run
- brew ruby install
- brew gradle install
This was fascinating for me as it removed all the steps to download zipped file or tar file, setting up necessary folder, PATH variables, and repeating the process to get new packages.
No comments:
Post a Comment