snippetrubyCritical
How can I install a local gem?
Viewed 0 times
howinstallgemcanlocal
Problem
If I download a .gem file to a folder in my computer, can I install it later using
gem install?Solution
Yup, when you do
gem install will install the named
gem. It will attempt a local
installation (i.e. a .gem file in the
current directory), and if that fails,
it will attempt to download and
install the most recent version of the
gem you want.
gem install, it will search the current directory first, so if your .gem file is there, it will pick it up. I found it on the gem reference, which you may find handy as well:gem install will install the named
gem. It will attempt a local
installation (i.e. a .gem file in the
current directory), and if that fails,
it will attempt to download and
install the most recent version of the
gem you want.
Context
Stack Overflow Q#220176, score: 303
Revisions (0)
No revisions yet.