RVM is a command-line tool that provides the management and switching of a convenient, multiple-version ruby environment.
https://rvm.io/
Installation:
# GPG--keyserver hkp://keys.gnupg.net--recv-keys d39dc0e3
# curl-l Get.rvm.io | Bash-s Stable
# source ~/.BASHRC
# source ~/.bash_profile
Delete:
# RVM Implode
Or use a script:
#!/bin/bash
/usr/bin/sudo rm-rf $HOME/.RVM $HOME/.RVMRC/ETC/RVMRC/ETC/PROFILE.D/RVM.SH/USR/LOCAL/RVM/USR/LOCAL/BIN/RVM
/usr/bin/sudo/usr/sbin/groupdel RVM
/bin/echo "RVM is removed. Please check all. bashrc|. bash_profile|. profile|. ZSHRC for RVM source lines and delete
or comment out if this is a Per-user installation.
Command:
Listing known versions of Ruby
# RVM List known
Install a ruby version
# RVM Install 2.0.0
Use a ruby version
# RVM Use 2.0.0
Set as Default version
# RVM Use 2.0.0--default
Uninstall the installed version
# RVM Remove 2.0.0
Establish Gemset
# RVM Use 2.0.0
# RVM Gemset Create 2.0.0@discourse
Set the established Gemset as the current environment
# RVM Use 2.0.0
# RVM Use 2.0.0@discourse
Lists the current Ruby Gemset
# RVM Gemset List
Clear the gem in the Gemset
# RVM Gemset Empty 2.0.0@discourse
Delete Gemset
# RVM Gemset Delete Discourse