Posted By

noah on 10/20/08


Tagged

ruby version system update upgrade manager maintenance Gem sysadmin rubygems Package selfupdate gems packagemanager


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

xurde
webstic
endorfin


Update RubyGems to the latest version (how to upgrade the gem command)


 / Published in: Ruby
 

URL: http://oddlyzen.com

This command tells RubyGems to upgrade itself to the latest version of RubyGems.

Updated 2010 on modern RubyGems, all you have to do is

 gem update --system

and you are set. Then you can say gem update to get the latest versions of installed gems.

The rest of this post will be left intact for historical purposes.

If you were going to read the documentation…

…then remove --no-rdoc and/or --no-ri.

If you also want to update all installed gems…

…then just say sudo gem update

  1. sudo gem update --system
  2.  
  3.  
  4.  
  5. # OLD WAY, for historical purposes
  6.  
  7. sudo gem install rubygems-update --no-rdoc --no-ri
  8. sudo update_rubygems

Report this snippet  

You need to login to post a comment.