Skip to content

Instantly share code, notes, and snippets.

@sunfmin
Created September 18, 2008 06:12
Show Gist options
  • Save sunfmin/11385 to your computer and use it in GitHub Desktop.
Save sunfmin/11385 to your computer and use it in GitHub Desktop.
sudo gem uninstall -Ia `gem list dm|grep dm|ruby -pe '$_ = $_.split(" ")[0].to_s + "\n"'`
sudo gem cleanup `gem list merb|grep merb|ruby -pe '$_ = $_.split(" ")[0].to_s + "\n"'`
gem list | awk '/^(merb|dm|data_objects|do_)/{print $1}' | xargs sudo gem update
gem list | awk '/^(merb|dm|data_objects|do_)/{print $1}' | xargs sudo gem clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment