https:\/\/rvm.io\/rvm\/security<\/a>.<\/p>\n\n\n\n$ gpg --keyserver hkp:\/\/keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB\n<\/code><\/pre>\n\n\n\nStep 2: Download and install RVM<\/h3>\n\n\n\n
Go to the \/tmp<\/code> folder<\/p>\n\n\n\n$ cd \/tmp\n<\/code><\/pre>\n\n\n\nDownload a stable version of the RVM script.<\/p>\n\n\n\n
$ sudo apt-get update && apt-get install curl && curl -sSL https:\/\/get.rvm.io | bash -s stable\n<\/code><\/pre>\n\n\n\nAdd your user account to the rvm group.<\/p>\n\n\n\n
$ sudo usermod -a -G rvm username\n<\/code><\/pre>\n\n\n\nLog out of your terminal, then log back in again. Group memberships are only evaluated at login time.<\/p>\n\n\n\n
Check the RVM version.<\/p>\n\n\n\n
$ rvm -v\n\nrvm 1.29.9 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https:\/\/rvm.io]\n<\/code><\/pre>\n\n\n\nManage your Ruby Environment<\/h2>\n\n\n\n
Example:<\/strong> List the known Ruby versions<\/p>\n\n\n\n$ rvm list known\n<\/code><\/pre>\n\n\n\nExample:<\/strong> Install a specific version of Ruby.<\/p>\n\n\n\n$ rvm install ruby-2.7.0\n\n$ rvm --default use ruby-2.7.0\n<\/code><\/pre>\n\n\n\nExample:<\/strong> Remove a specific version of Ruby.<\/p>\n\n\n\n$ rvm remove ruby-2.7.0\n<\/code><\/pre>\n\n\n\nExample:<\/strong> Check the Ruby versions installed with RVM.<\/p>\n\n\n\n$ rvm list\n<\/code><\/pre>\n\n\n\nExample:<\/strong> Check the Ruby version.<\/p>\n\n\n\n$ ruby -v\n<\/code><\/pre>\n\n\n\nExample:<\/strong> Remove a specific version of Ruby.<\/p>\n\n\n\n$ rvm remove ruby-2.7.0\n<\/code><\/pre>\n\n\n\n