All things development, technology, and other interests
Upgrading All Currently Installed Ruby Gems

Upgrading All Currently Installed Ruby Gems

So, I’ve begun playing around with Ruby a bit. I’ve been curious to see what all the hype is around Ruby and Ruby on Rails. I installed Ruby prior to my tinkering because I wanted to follow along with some examples included in a backbone.js tutorial. I notices there have been many updates to Ruby (I was on version 1.9.3p0 and the current stable version as of this post is 1.9.3p194). There have also been many upgrades to the surprisingly long list of Gems I’ve already got installed. There is no straightforward way to upgrade all of the gems at once. However, you can do it with a little knowledge around the OS X (or Linux would be the same in this case) terminal.

The one-line command to upgrade all of the currently installed Ruby Gems is:

sudo gem update `gem list | cut -d ' ' -f 1`

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.