Skip to content

Instantly share code, notes, and snippets.

@divoxx
Created November 28, 2011 20:33
Show Gist options
  • Select an option

  • Save divoxx/1401911 to your computer and use it in GitHub Desktop.

Select an option

Save divoxx/1401911 to your computer and use it in GitHub Desktop.
Reinstall all gems
gem list | cut -d ' ' -f 1 | tee gems.txt | xargs gem uninstall -I -a && for path in $(echo `gem env path` | tr ":" "\n"); do rm -rf ${path}/specifications/* ${path}/cache/*; done && cat gems.txt | xargs gem install
rm gems.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment