rvm

Ruby Version Manager tips and tricks

Install

Install rvm.

command curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
curl -L get.rvm.io | bash -s stable

Edit .bashrc and add.

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

Install ruby.

rvm list known
rvm install ruby-3.1.0
rvm use ruby-3.1.0 --install --default --create

Uninstall

Remove ruby, keep the gemsets:

rvm list
rvm uninstall VERSION_NUMBER

Remove ruby and its associated gemsets:

rvm list
rvm remove VERSION_NUMBER

Last updated