Skip to content

Instantly share code, notes, and snippets.

@mhenrixon
Created March 8, 2013 09:11
Show Gist options
  • Save mhenrixon/5115188 to your computer and use it in GitHub Desktop.
Save mhenrixon/5115188 to your computer and use it in GitHub Desktop.
Uninstalls all gems under ruby 2.0. This way the system gems won't halt the uninstallation process upon throwing exceptions
for gem in `gem list --no-version`; do
gem uninstall -aIx $gem
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment