Created
February 17, 2016 19:19
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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