本文介绍了如何列出远程站点提供的所有gem版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我尝试过使用:

  gem list rhc --remote 

但它显示:

  ***远程GEMS *** 
rhc(0.84.15)
rhcp( 0.2.18)
rhcp_shell(0.2.12)

任何想法?

解决方案

好吧,它比我想象的要容易(好吧,不是真的,让我们说应该很简单):

  gem list rhc --remote --all 

返回:

  ***远程GEMS *** 
rhc(0.84。 15,0.84.13,0.83.9,0.82.18,0.81.14,0.80.5,0.79.5,0.77.8,0.75.9,0.74.6,0.74.5,0.73.14,0.72.29, 0.22.1,0.61.2,0.69.6,0.69.3,0.68.5)
rhcp(0.2.18,0.2.17,0.2.16,0.2.15,0.2.14,0.1.9,0.1.8, 0.1.7,0.1.6,0.1.5,0.1.4,0.1.3,0.1.2)
rhcp_shell(0.2.12,0.2.11,0.0.9,0.0.7,0.0.6, 0.0.5,0.0.4,0.0.3,0。 0.2,0.0.1)


I'm trying to find out all the remotely available versions of a specified gem.

I tried using:

gem list rhc --remote

But it shows:

*** REMOTE GEMS ***
rhc (0.84.15)
rhcp (0.2.18)
rhcp_shell (0.2.12)

Any ideas?

解决方案

Well, it was easier than I thought (well, not really, let's say as easy as it should be):

gem list rhc --remote --all

Which returns:

*** REMOTE GEMS ***
rhc (0.84.15, 0.84.13, 0.83.9, 0.82.18, 0.81.14, 0.80.5, 0.79.5, 0.77.8, 0.75.9, 0.74.6, 0.74.5, 0.73.14, 0.72.29, 0.71.2, 0.69.6, 0.69.3, 0.68.5)
rhcp (0.2.18, 0.2.17, 0.2.16, 0.2.15, 0.2.14, 0.1.9, 0.1.8, 0.1.7, 0.1.6, 0.1.5, 0.1.4, 0.1.3, 0.1.2)
rhcp_shell (0.2.12, 0.2.11, 0.0.9, 0.0.7, 0.0.6, 0.0.5, 0.0.4, 0.0.3, 0.0.2, 0.0.1)

这篇关于如何列出远程站点提供的所有gem版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 09:26