Skip to content

Instantly share code, notes, and snippets.

@kevinkarwaski
Last active December 14, 2015 03:39
Show Gist options
  • Save kevinkarwaski/5022207 to your computer and use it in GitHub Desktop.
Save kevinkarwaski/5022207 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Oneliner to remove all gems.
# See: http://stackoverflow.com/questions/15100496/uninstalling-all-gems-ruby-2-0-0
for i in `gem list --no-versions`; do gem uninstall -aIx $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment