Files
tldr/pages.zh/common/rvm.md

36 lines
677 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# rvm
> 轻松安装、管理和使用多个 Ruby 环境。
> 更多信息:<https://rvm.io>。
- 安装一个或多个版本的 Ruby
`rvm install {{version1 version2 ...}}`
- 显示已安装版本的列表:
`rvm list`
- 使用特定版本的 Ruby
`rvm use {{version}}`
- 设置默认的 Ruby 版本:
`rvm --default use {{version}}`
- 将某个版本的 Ruby 升级到新版本:
`rvm upgrade {{current_version}} {{new_version}}`
- 卸载一个版本的 Ruby 并保留其源代码:
`rvm uninstall {{version}}`
- 移除一个版本的 Ruby 及其源代码:
`rvm remove {{version}}`
- 显示您操作系统的特定依赖项:
`rvm requirements`