How to upgrade/downgrade Rubygems:
How to upgrade/downgrade Rubygems:
For RubyGems 1.5.0 and 1.5.1:
RubyGems 1.5.0和1.5.1版本中包含了一个故障的gem update --system命令,请参考下方提供的手动升级食谱。
On Ruby 1.9.x:
From stock ruby shipping with 1.9:
Use the Normal Upgrade Method below. (finally!)
On Ruby 1.8.x:
From rubygems 1.3.x:
Use the Normal Upgrade Recipe below.
From rubygems 1-1.x through 1.2.x:
RubyGems 1.1 和 1.2 版本在未安装 rubygems-update 的情况下升级会遇到困难。当遇到 "Nothing to update" 提示时,请按照以下步骤操作。
Use the Manual Upgrade Recipe below.
From rubygems < 1.1.x:
Use the Normal Upgrade Recipe below.
Downgrade Recipe
Normal Downgrade
With rubygems 1.5.2 and higher:
With rubygems 1.5.1 and lower:
Use sudo/su as appropriate:
Replace 1.3.7 with any version you choose to downgrade to. This recipe can also be used to upgrade to a particular version rather than the most recent one.
Do ensure that you don't have any other installations of rubygems-update installed when running the second command.
1.9.2 Downgrade from Rubygems 1.4.x+ to stock 1.9 rubygems:
Use sudo/su as appropriate:
Upgrade Recipes
Normal Upgrade
Use sudo/su as appropriate:
Manual Upgrade
If an older version of RubyGems is installed on your system, then you can still accomplish the task in two steps.
Use sudo/su as appropriate:
Manual Install
Unless you have no RubyGems installed, the pre gem installation method still exists, which can be done manually.
Use sudo/su as appropriate:
获取下载地址
Unpack into a directory and cd there
Install with: ruby setup.rb
