DevOps Buzz
Search…
Bash / Shell
Bitbucket
Distros
Elasticsearch
General
Guidelines / Standards
microk8s
Prometheus
RabbitMQ
VirtualBox
rvm
Ruby Version Manager tips and tricks

Install

Install rvm.
1
command curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
2
curl -L get.rvm.io | bash -s stable
Copied!
Edit .bashrc and add.
1
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
Copied!
Install ruby.
1
rvm list known
2
rvm install ruby-3.1.0
3
rvm use ruby-3.1.0 --install --default --create
Copied!

Uninstall

Remove ruby, keep the gemsets:

1
rvm list
2
rvm uninstall VERSION_NUMBER
Copied!

Remove ruby and its associated gemsets:

1
rvm list
2
rvm remove VERSION_NUMBER
Copied!