RVM | Ruby

`rvm list known’ not showing latest rubies

Published: Sat, July 30, 2022.

$ rvm --version
rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]

$ rvm list known
# MRI Rubies
(some output redacted)
[ruby-]1.9.3[-p551]
[ruby-]2.7[.2]
[ruby-]3[.0.0]
ruby-head

For some reason, rvm list known did not show ruby 3.1.2. Still, running rvm install ruby-3.1.2 worked. rvm itself had just been upgraded to the latest version with nvm get stable.

Default Ruby on New Shells

Make ruby-3.1.2 the default for new shell sessions:

$ rvm --default use ruby-3.1.2