Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you downgrade rubygems?

Tags:

ruby

rubygems

I have rubygems 1.3.1 installed but I want to go back to 1.2.0. What's the command to downgrade rubygems?

like image 461
Shalmanese Avatar asked Feb 07 '09 15:02

Shalmanese


People also ask

How do I install a specific version of a gem?

Use `gem install -v` You may already be familiar with gem install , but if you add the -v flag, you can specify the version of the gem to install. Using -v you can specify an exact version or use version comparators.


1 Answers

This worked for me when downgrading from 1.5.2 to 1.4.2 because of old rails version:

sudo gem update --system 1.4.2 

More information about downgrading/upgrading rubygems: https://github.com/rubygems/rubygems/blob/master/UPGRADING.md

like image 140
pseidemann Avatar answered Sep 23 '22 19:09

pseidemann