33

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

Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338

3 Answers3

67

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
mpapis
  • 52,729
  • 14
  • 121
  • 158
  • I don't get it: I ran `rvm get stable`, but `ruby-2.2.3` is showing up at the latest, and as of now, `2.3.0` is available. – nipponese Jan 15 '16 at 04:31
3

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).
#....................
#.....................
Community
  • 1
  • 1
Arup Rakshit
  • 116,827
  • 30
  • 260
  • 317
0

That's what I needed for RVM v1.29 installed for multi users on Pop!_OS:

rvmsudo rvm get stable
Szymon Rut
  • 835
  • 1
  • 9
  • 13