Example of RVM installation deletion in Linux

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.