tester
tester

Reputation: 23159

RVM: getting previous ruby's gems for new ruby version

I previously had ruby 1.9.3-p286 installed with rvm (set as --default). I had a ton of gems installed (globally) for this version.

I installed ruby 1.9.3-p327 today with rvm (and want to set it as the new --default), but I now have to somehow re-download/reinstall all of the ruby gems I had previously in 1.9.3-p286.

Is there any easy way to install all of the gems for p327 that I had previously installed for p286 without manually gem installing each again?

Edit: On the upgrading page for rvm, it mentions something about copying "gemsets" then running gem update, but I'm not sure what syntax to use for my use case.

Upvotes: 1

Views: 149

Answers (1)

vgoff
vgoff

Reputation: 11313

Copying gems It doesn't require gemsets, as stated. For your case, it would be:

rvm gemset copy 1.9.3-p286 1.9.3-p327.

Upvotes: 2

Related Questions