1 = How to upgrade/downgrade Rubygems:
3 == For RubyGems 1.5.0 and 1.5.1:
5 RubyGems 1.5.0 and 1.5.1 shipped with a broken <tt>gem update --system</tt>.
6 You will need to use the Manual Upgrade Recipe below.
10 === From stock ruby shipping with 1.9:
12 Use the Normal Upgrade Method below. (finally!)
16 === From rubygems 1.3.x:
18 Use the Normal Upgrade Recipe below.
20 === From rubygems 1-1.x through 1.2.x:
22 RubyGems 1.1 and 1.2 have problems upgrading when there is no
23 rubygems-update installed. You will need to use the following
24 instructions if you see "Nothing to update".
26 Use the Manual Upgrade Recipe below.
28 === From rubygems < 1.1.x:
30 Use the Normal Upgrade Recipe below.
36 ==== With rubygems 1.5.2 and higher:
38 $ gem update --system 1.3.7
40 ==== With rubygems 1.5.1 and lower:
42 Use sudo/su as appropriate:
44 $ gem install rubygems-update -v 1.3.7
45 $ update_rubygems _1.3.7_
47 Replace 1.3.7 with whatever version you want to downgrade to. This
48 recipe can also be used to upgrade to a specific version instead of
51 Do make sure that you don't have any other versions of rubygems-update
52 installed when you run the second command.
54 === 1.9.2 Downgrade from Rubygems 1.4.x+ to stock 1.9 rubygems:
56 Use sudo/su as appropriate:
58 $ ruby --disable-gems -S gem which rubygems
59 ~/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems.rb
60 $ rm ~/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems.rb
61 $ rm -rf ~/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems
69 Use sudo/su as appropriate:
75 If you have an older version of RubyGems installed, then you can still
78 Use sudo/su as appropriate:
80 $ gem install rubygems-update
85 If you don't have any RubyGems install, there is still the pre-gem
86 approach to getting software, doing it manually:
88 Use sudo/su as appropriate:
90 * Download from: https://rubygems.org/pages/download
91 * Unpack into a directory and cd there
92 * Install with: ruby setup.rb