Linux command
rvm 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Install Ruby version
rvm install [3.2.0]
List installed versions
rvm list
Use specific version
rvm use [3.2.0]
Set default version
rvm use [3.2.0] --default
Create gemset
rvm gemset create [myproject]
Use version with gemset
rvm use [3.2.0]@[myproject]
List available versions
rvm list known
说明
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.
参数
- 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.
FAQ
What is the rvm command used for?
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.
How do I run a basic rvm example?
Run `rvm install [3.2.0]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does install _version_ do in rvm?
Install Ruby version.