Skip to content

Instantly share code, notes, and snippets.

@omeryavuz
Forked from don-smith/uninstall_all_gems.sh
Created April 4, 2012 04:54
Show Gist options
  • Save omeryavuz/2297873 to your computer and use it in GitHub Desktop.
Save omeryavuz/2297873 to your computer and use it in GitHub Desktop.
#!/bin/bash
# To uninstall all gems
GEMS=`gem list --no-versions`
for x in $GEMS ; do gem uninstall $x; done
# In a future revision it would be
# nice to prevent all the prompts but it's
# still faster than the alternative as it is
# From: http://loopkid.net/articles/2008/05/31/uninstall-all-gems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment