Skip to content

Instantly share code, notes, and snippets.

@edheltzel
Created February 17, 2016 19:19
Show Gist options
  • Save edheltzel/cffb6aacd7faee70ec3c to your computer and use it in GitHub Desktop.
Save edheltzel/cffb6aacd7faee70ec3c to your computer and use it in GitHub Desktop.
Provided by [Romain on Stackoverflow](http://stackoverflow.com/a/8095250) Takes the list of all gems (incl. version stuff), cuts it to keep only the gem name, then uninstalls all versions of such gems. The `sudo` is only useful if you had gems installed system-wide, and should not be included unless necessary.
gem list | cut -d" " -f1 | sudo xargs gem uninstall -Iax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment