# How to install a gem without using gem command online

**URL:** <https://rubytalk.org/t/how-to-install-a-gem-without-using-gem-command-online/68015>\
**Category:** ruby-talk\
**Created:** [10 June 2013 21:29 UTC](https://rubytalk.org/t/how-to-install-a-gem-without-using-gem-command-online/68015 "2013-06-10T21:29:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruby\_Student1](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@Ruby\_Student1](https://rubytalk.org/u/Ruby_Student1)\
**Post date:** [10 June 2013 21:29 UTC](https://rubytalk.org/t/how-to-install-a-gem-without-using-gem-command-online/68015/1 "2013-06-10T21:29:15Z")

</div>

Team,

I have a server which is not allowed to access the web. I downloaded and  
installed ruby on it. Now I would like to install some of the ruby gems but  
the command:  
gem install gem\_name does not work obviously because it can't reach the  
web. I just don't know where to find the gems to download them, and install  
them from a local repository.

Any suggestions?

Thank you

> **···**
>
> --  
> Ruby Student

---

<div class="post-metadata">

**Author:** ![Wayne\_Brisette](https://avatars.discourse-cdn.com/v4/letter/w/91b2a8/32.png) [@Wayne\_Brisette](https://rubytalk.org/u/Wayne_Brisette)\
**Post date:** [10 June 2013 21:39 UTC](https://rubytalk.org/t/how-to-install-a-gem-without-using-gem-command-online/68015/2 "2013-06-10T21:39:22Z")

</div>

I have a server behind a firewall that won't allow me to access the web to download gems either. What I do is go to ruby gems ([http://rubygems.org](http://rubygems.org)), find the gem I want using another computer, then copy that over to the server. Then from the terminal I simply use:

gem install \<path to gem\>

The only downfall I have found is when there are dependencies on other gems, then I have to go download those and install them first.

Wayne

---

<div class="post-metadata">

**Author:** ![Josh\_Cheek](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@Josh\_Cheek](https://rubytalk.org/u/Josh_Cheek)\
**Post date:** [11 June 2013 18:17 UTC](https://rubytalk.org/t/how-to-install-a-gem-without-using-gem-command-online/68015/3 "2013-06-11T18:17:54Z")

</div>

User Bundler and it's package command:  
[http://gembundler.com/v1.3/man/bundle-package.1.html](http://gembundler.com/v1.3/man/bundle-package.1.html)

-Josh

> **···**
>
> On Mon, Jun 10, 2013 at 4:29 PM, Ruby Student \<ruby.student@gmail.com\>wrote:
> 
> > Team,
> > 
> > I have a server which is not allowed to access the web. I downloaded and  
> > installed ruby on it. Now I would like to install some of the ruby gems but  
> > the command:  
> > gem install gem\_name does not work obviously because it can't reach the  
> > web. I just don't know where to find the gems to download them, and install  
> > them from a local repository.
> > 
> > Any suggestions?

---

<div class="post-metadata">

**Author:** ![Ruby\_Student1](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@Ruby\_Student1](https://rubytalk.org/u/Ruby_Student1)\
**Post date:** [11 June 2013 14:50 UTC](https://rubytalk.org/t/how-to-install-a-gem-without-using-gem-command-online/68015/4 "2013-06-11T14:50:06Z")

</div>

Hi Wayne,

This will work for me even if I need to go crazy with dependencies.

Thank you

> **···**
>
> On Mon, Jun 10, 2013 at 5:39 PM, Wayne Brisette \<wbrisett@att.net\> wrote:
> 
> > I have a server behind a firewall that won't allow me to access the web to  
> > download gems either. What I do is go to ruby gems ([http://rubygems.org](http://rubygems.org)),  
> > find the gem I want using another computer, then copy that over to the  
> > server. Then from the terminal I simply use:
> > 
> > gem install \<path to gem\>
> > 
> > The only downfall I have found is when there are dependencies on other  
> > gems, then I have to go download those and install them first.
> > 
> > Wayne
> 
> --  
> Ruby Student
