已知版本的ruby-rvm列表已知

时间:2012-12-20 14:56:17

标签: ruby rvm

  

可能重复:
  Deleting versions of ruby

我正在尝试卸载单个版本的ruby。列表中的第二个:

which -a ruby
/Users/snowcrash/.rvm/rubies/ruby-1.9.2-p318/bin/ruby
/Users/snowcrash/.rvm/bin/ruby

然而,当我跑步时:

rvm remove

我明白了:

Really? remove all? See "rvm list known" and limit the selection to something more sane please :)

所以,跑步:

rvm list known 

显示了完整的版本列表。但是,这些都不是我要删除的,即/Users/snowcrash/.rvm/bin/ruby

E.g。

# MRI Rubies
[ruby-]1.8.6[-p420]
[ruby-]1.8.7[-p358]
[ruby-]1.8.7-head
[ruby-]1.9.1[-p431]
[ruby-]1.9.2-p180
[ruby-]1.9.2-p290
[ruby-]1.9.2[-p318]
[ruby-]1.9.2-head
[ruby-]1.9.3-preview1
[ruby-]1.9.3-rc1
[ruby-]1.9.3-p0
[ruby-]1.9.3[-p125]
[ruby-]1.9.3-head
ruby-head

# GoRuby
goruby

# TheCodeShop - MRI experimental patches
tcs

# JRuby
jruby-1.2.0
jruby-1.3.1
jruby-1.4.0
jruby-1.6.5
jruby-1.6.5.1
jruby-1.6.6
jruby[-1.6.7]
jruby-head

# Rubinius
rbx-1.0.1
rbx-1.1.1
rbx-1.2.3
rbx-1.2.4
rbx[-head]
rbx-2.0.testing

# Ruby Enterprise Edition
ree-1.8.6
ree[-1.8.7][-2012.02]

# Kiji
kiji

# MagLev
maglev[-head]
maglev-1.0.0

# Mac OS X Snow Leopard Or Newer
macruby[-0.10]
macruby-nightly
macruby-head

# IronRuby -- Not implemented yet.
ironruby-0.9.3
ironruby-1.0-rc2
ironruby-head

2 个答案:

答案 0 :(得分:2)

你缺乏对rvm的了解:

$ rvm list
...
=* ruby-1.9.3-p327 [ x86_64 ]
...

$ rvm alias list
default => ruby-1.9.3-p327

现在可以删除列表中的内容:

$ rvm remove 1.9.3

什么是别名必须作为别名删除:

$ rvm alias delete default

所有这些信息都可以在rvm site =>获得。 https://rvm.io

答案 1 :(得分:0)

啊哈 - 想通了:

rvm uninstall all

有趣的是,这会将所有版本分开从我想要删除的版本中删除!

which -a ruby
/Users/snowcrash/.rvm/bin/ruby