已知更新RVM列表

时间:2012-09-29 05:20:50

标签: ruby rvm

是否可以在不升级整个rvm的情况下更新已知红宝石列表(rvm list known得到的内容)?

2 个答案:

答案 0 :(得分:58)

不,不是,某些版本更改需要更改代码, 你应该善于坚持稳定以保持更多的稳定性(如果你担心的话):

rvm get stable

<击> 你应该善于坚持掌握(因为它稳定)以获得最新版本:

rvm get master

答案 1 :(得分:2)

mpapis回答和意见是100%正确的。我在笔记本电脑上的设置如下。

将行rvm_autoupdate_flag=2添加到~/.rvmrc。只要你像rvm list known那样,它就会自动更新Rvm。

示例:

arup@linux-wzza:~> rvm list known
Warning, new version of rvm available '1.26.0', you are using older version '1.25.33'.
You can disable this warning with:    echo rvm_autoupdate_flag=0 >> ~/.rvmrc
You can enable  auto-update  with:    echo rvm_autoupdate_flag=2 >> ~/.rvmrc
arup@linux-wzza:~> echo rvm_autoupdate_flag=2 >> ~/.rvmrc
arup@linux-wzza:~> rvm list known
Found old RVM 1.25.33 - updating.
Downloading https://get.rvm.io
Downloading https://github.com/wayneeseguin/rvm/archive/1.26.0.tar.gz
Downloading https://github.com/wayneeseguin/rvm/releases/download/1.26.0/1.26.0.tar.gz.asc
gpg: Signature made Wed 29 Oct 2014 06:22:06 PM IST using RSA key ID BF04FF17
gpg: Can't check signature: No public key
Warning, RVM 1.26.0 introduces signed releases and automated check of signatures when GPG software found.
Assuming you trust Michal Papis import the mpapis public key (downloading the signatures).
#....................
#.....................