Skip to content

Instantly share code, notes, and snippets.

@jgdavey
Created January 4, 2010 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgdavey/268814 to your computer and use it in GitHub Desktop.
Save jgdavey/268814 to your computer and use it in GitHub Desktop.
rvm gem migration
# Switch back to system just to make sure
rvm use system
# Print a list of all gems installed on the system
gem list | awk '{print $1}' > gems.txt
# Switch to the new version of ruby
rvm use ree
# Install each gem from the list, skipping documentation
cat gems.txt | gem install --no-rdoc --no-ri
# Don't need this anymore
rm gems.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment