Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I install a local gem?

Tags:

ruby

rubygems

If I download a .gem file to a folder in my computer, can I install it later using gem install?

like image 979
hectorsq Avatar asked Oct 20 '08 22:10

hectorsq


People also ask

How do I install a local gem file?

You can download gems from https://rubygems.org/gems/ or build you local gem via bundle and rack. eg: bundle gem yourGemName. rake install.


1 Answers

Also, you can use gem install --local path_to_gem/filename.gem

This will skip the usual gem repository scan that happens when you leave off --local.

You can find other magic with gem install --help.

like image 147
JasonTrue Avatar answered Sep 20 '22 22:09

JasonTrue