Ruby – How to install a local gem

rubyrubygems

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

Best Solution

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.