2012-09-29 24 views
25

是否可以更新已知紅寶石的列表(您得到的內容是rvm list known)而不升級整個rvm?更新已知的RVM列表

+0

@sawa答覆張貼在http://chat.stackexchange.com/transcript/message/6319864#6319864 –

+0

我明白了。很好,你可以說服他。看起來你去過很多地方。 – sawa

回答

55

不,它不是,一些版本的變化需要更改代碼, 你要善於與堅持穩定保持更穩定(如果這是你的關心):

rvm get stable 

你要善於與堅持主(因爲它是穩定的),以獲得最新版本:

rvm get master 
+0

我不明白:我運行'rvm get stable',但是'ruby-2.2.3'已經出現在最新的版本,截至目前,'2.3.0'已經發布。 – nipponese

+0

更新爲主 – mpapis

0

mpapis的答案和看法是100%正確的。我在筆記本電腦中的設置如下。

添加行rvm_autoupdate_flag=2~/.rvmrc。無論何時你會像rvm list known一樣,它會自動更新Rvm。

例子:

[email protected]:~> 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 
[email protected]:~> echo rvm_autoupdate_flag=2 >> ~/.rvmrc 
[email protected]:~> 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). 
#.................... 
#.....................