📌  相关文章
📜  rvm - Shell-Bash (1)

📅  最后修改于: 2023-12-03 15:19:53.462000             🧑  作者: Mango

RVM - Shell-Bash

RVM Logo

RVM (Ruby Version Manager) is a command-line utility that helps Ruby developers manage their Ruby environment.

With RVM, developers can easily install, manage, and switch between different versions of Ruby, as well as create and manage gemsets, which are collections of gems used for developing specific applications or projects.

RVM supports a wide range of Unix-based operating systems, including macOS, Linux, and BSD.

Installation:

To install RVM, run the following command in your terminal:

\curl -sSL https://get.rvm.io | bash -s stable

This will download and run the RVM installation script.

Usage:

Once installed, you can use RVM to install and manage Ruby versions. Here are a few basic commands to get you started:

Install Ruby

rvm install <version>

This will install the specified version of Ruby.

Use a specific Ruby version

rvm use <version>

This will set the specified version of Ruby as the default.

List installed Ruby versions

rvm list

This will list all the versions of Ruby that are currently installed on your system.

Create a gemset

rvm gemset create <gemset-name>

This will create a new gemset with the specified name.

Use a gemset

rvm gemset use <gemset-name>

This will use the specified gemset for the current Ruby version.

For a more comprehensive guide on using RVM, check out the official documentation.