Monday, January 26, 2015

Setting up your Mac with Homebrew and Cask

Homebrew is a community-driven package management software that is based off ruby for  compiling and install tools and applications on your mac.    Each "formula" is essentially a build script which also downloads the associated dependencies for the build. 

To install Homebrew,  open up terminal and run:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew update

To install tools, run the following:
brew install coreutilsbrew install findutilsbrew install bashbrew tap homebrew/dupesbrew install homebrew/dupes/grep

Run clean up to clear out the downloaded source code or old versions.
brew cleanup 

Every now and then, to update old packages, run: 
brew upgrade `brew outdated`

Apps with Homebrew Cask

Install cask with the following command:
brew install caskroom/cask/brew-cask

Heres quick and dirty script to install apps:
apps=(   appcleaner
  atom
  cloudup
  dnscypt
  firefox
  flash
  google-chrome
  iterm2
  nvalt
  qlcolorcode
  qlprettypatch
  qlstephen
  quicklook-json
  shiori skitch
  skype
  transmission
  vagrant
  virtualbox
  vlc)


brew cask install --appdir="/Applications" ${apps[@]}

0 comments:

AddThis Feed Button