可以自动下载Ruby宝石吗? [英] Is it possible to download a Ruby gem without installing it automatically?

查看:99
本文介绍了可以自动下载Ruby宝石吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 gem 下载某些东西时,我希望能够下载宝石,然后选择是否要安装。我问这个是因为我想在一台以上的计算机上安装一个特定的gem(没有从互联网上安装每个)。

When I download something using gem I'd like to be able to just download the gem, and then choose whether or not I want to install it. I'm asking this because I'd like to install a particular gem on more than one computers ( without installing from the internet on each one ).

推荐答案

gem fetch



所以,像 $ gem fetch gosu ...这样会离开 gosu-0.7.14.gem 在当前目录中。

gem fetch

So, something like $ gem fetch gosu ... this will leave gosu-0.7.14.gem in the current directory.

即使您已经安装。

这篇关于可以自动下载Ruby宝石吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆