Update RVM list known

二次信任 提交于 2019-12-29 07:22:08

问题


Is it possible to update the list of known rubies (what you get with rvm list known) without upgrading the entirety of rvm?


回答1:


No it is not, some of the version changes require changes in code, you should be good with sticking to stable to keep more stability (if that is your concern):

rvm get stable

you should be good with sticking to master (as it's stable) to get latest versions:

rvm get master



回答2:


mpapis answer and opinion is 100% correct. The settings I had in my laptop is below.

Add the the line rvm_autoupdate_flag=2 to ~/.rvmrc. It will auto update Rvm, all the time, whenever you will do like rvm list known.

Example:

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).
#....................
#.....................


来源:https://stackoverflow.com/questions/12650164/update-rvm-list-known

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!