I'm just learning to use RVM, and would like to know how I can do the following:
我只是学习使用RVM,并想知道如何执行以下操作:
- Remove a specific version of Ruby and/or all versions of Ruby.
- 删除特定版本的Ruby和/或所有版本的Ruby。
- Verify the removal that version, both using RVM and simply looking into my directories, config files, etc (where should I look?)
- 验证删除该版本,使用RVM并只是查看我的目录,配置文件等(我应该在哪里看?)
- Installing a specific version of Ruby.
- 安装特定版本的Ruby。
Also, how would I do the above with gems?
另外,我如何使用宝石进行上述操作?
Thanks in advance for your help.
在此先感谢您的帮助。
1 个解决方案
#1
60
Basically taken from http://beginrescueend.com/rvm/:
基本上取自http://beginrescueend.com/rvm/:
To list the available ruby versions to install type:
列出要安装的可用ruby版本类型:
rvm list known
To then install from the list of known, type:
要从已知列表中安装,请键入:
rvm install VERSION_NUMBER
To then use the ruby version you have installed:
然后使用您安装的ruby版本:
rvm use VERSION_NUMBER
You can make a certain ruby version your system default version:
您可以将某个ruby版本设置为系统默认版本:
rvm use VERSION_NUMBER --default
To remove the ruby version and keep the gemsets:
要删除ruby版本并保留gemsets:
rvm uninstall VERSION_NUMBER
To remove ruby and its associated gemsets:
要删除ruby及其相关的gemsets:
rvm remove VERSION_NUMBER
To learn about your ruby environment and where they are installed / aliased:
要了解您的ruby环境以及它们的安装位置/别名:
rvm info
#1
60
Basically taken from http://beginrescueend.com/rvm/:
基本上取自http://beginrescueend.com/rvm/:
To list the available ruby versions to install type:
列出要安装的可用ruby版本类型:
rvm list known
To then install from the list of known, type:
要从已知列表中安装,请键入:
rvm install VERSION_NUMBER
To then use the ruby version you have installed:
然后使用您安装的ruby版本:
rvm use VERSION_NUMBER
You can make a certain ruby version your system default version:
您可以将某个ruby版本设置为系统默认版本:
rvm use VERSION_NUMBER --default
To remove the ruby version and keep the gemsets:
要删除ruby版本并保留gemsets:
rvm uninstall VERSION_NUMBER
To remove ruby and its associated gemsets:
要删除ruby及其相关的gemsets:
rvm remove VERSION_NUMBER
To learn about your ruby environment and where they are installed / aliased:
要了解您的ruby环境以及它们的安装位置/别名:
rvm info