Skip to content

Instantly share code, notes, and snippets.

@gmanley
Forked from don-smith/uninstall_all_gems.sh
Created August 20, 2010 16:06
Show Gist options
  • Save gmanley/540600 to your computer and use it in GitHub Desktop.
Save gmanley/540600 to your computer and use it in GitHub Desktop.
#!/bin/bash
# To uninstall all gems
GEMS=`gem list --no-versions`
echo $GEMS >> ~/Desktop/gems_backup.txt
for x in $GEMS ; do yes | gem uninstall -a $x; done
# This uninstalls all your gems without prompts and backs up the names to a file named 'gems_backup.txt' on the desktop.
# Modified version of a script 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