Installing a Gem from a local file

What if you want to install a Gem that you did not find on Rubyforge - one that was mailed to you or that you have downloaded?

Simple: just add the downloaded file name to the gem install command, instead of the name of the gem. For example, installing the “simple-rss” extension would be:

  • with the path included if the file is not in the directory where your command line is:
    gem install D:\downloads\ruby_gems\simple-rss-1.1.gem
  • or without, if you change directory in your command line to where the file is
    gem install simple-rss-1.1.gem

Instead of just:
gem install simple-rss

This might seem evident to most of you, but it took me a while to figure out as rubyforge.org was down today and I had to rely on this mirror.

Leave a Reply