Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to update RubyGems offline?

I am trying to install Ruby + WATIR to a Windows server which is in an isolated environment. Typically I would run the ruby installer followed by these two commands:

1) gem update --system

2) gem install watir

This is as per the instuctions here

The server I am now trying to install to does not have internet connectivity. This causes the commands above to fail.

Is there a way I can download the update packages required and copy them to the server to install locally?

like image 203
Saul Dolgin Avatar asked Mar 17 '09 18:03

Saul Dolgin


1 Answers

When you do gem install it will search the current directory before looking to the remote source. You must specify the version if you are installing a local gem (see rubygems manual).

gem install copland-0.2.0.gem

I'm sorry, I don't know a way to update the gem system offline without doing a manual upgrade

like image 111
Angela Avatar answered Sep 30 '22 20:09

Angela