Skip to content

Instantly share code, notes, and snippets.

@camiloribeiro
Created September 20, 2012 00:18
Show Gist options
  • Save camiloribeiro/3753183 to your computer and use it in GitHub Desktop.
Save camiloribeiro/3753183 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