LinuxCommandLibrary

rvm

Ruby version manager for multiple installations

TLDR

Install Ruby version

$ rvm install [3.2.0]
copy
List installed versions
$ rvm list
copy
Use specific version
$ rvm use [3.2.0]
copy
Set default version
$ rvm use [3.2.0] --default
copy
Create gemset
$ rvm gemset create [myproject]
copy
Use version with gemset
$ rvm use [3.2.0]@[myproject]
copy
List available versions
$ rvm list known
copy

SYNOPSIS

rvm [options] command [args...]

DESCRIPTION

rvm (Ruby Version Manager) manages multiple Ruby installations and gemsets. It handles Ruby installation, version switching, and isolated gem environments.
The tool modifies shell environment to switch between Ruby versions and provides gemsets for project-specific gem isolation.

PARAMETERS

install version

Install Ruby version.
use version
Switch to version.
list
List installed versions.
list known
List available versions.
gemset create name
Create gemset.
gemset use name
Use gemset.
gemset list
List gemsets.
--default
Set as default.
implode
Remove RVM completely.

CAVEATS

Modifies shell initialization. Can conflict with system Ruby. Gemsets add complexity. Some prefer rbenv's simpler approach.

HISTORY

RVM was created by Wayne E. Seguin in 2009 to simplify Ruby version management. It became the dominant Ruby version manager before rbenv offered a simpler alternative. Now maintained by Michal Papis.

SEE ALSO

ruby(1), gem(1), rbenv(1), bundler(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community