Skip to content

Instantly share code, notes, and snippets.

@hightemp
Created July 11, 2013 16:53
Show Gist options
  • Save hightemp/5977187 to your computer and use it in GitHub Desktop.
Save hightemp/5977187 to your computer and use it in GitHub Desktop.

gems reinstall

#!/bin/bash
gem_file="/tmp/gem_list.txt"
gem list | cut -d" " -f1 > $gem_file
cat $gem_file | xargs gem uninstall -aIx
cat $gem_file | xargs gem install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment