问题描述
如何从系统中删除RVM(Ruby版本管理器)?
How can I remove RVM (Ruby Version Manager) from my system?
推荐答案
有一个简单的内置命令将其拉出:
There's a simple command built-in that will pull it:
rvm implode
这将删除rvm/
目录以及其中内置的所有红宝石.为了删除rvm的最终痕迹,您还需要删除rvm gem:
This will remove the rvm/
directory and all the rubies built within it. In order to remove the final trace of rvm, you need to remove the rvm gem, too:
gem uninstall rvm
如果您已经对PATH
进行了修改,那么您可能也希望将其删除.检查您的.bashrc
,.profile
和.bash_profile
文件,以及其他内容.
If you've made modifications to your PATH
you might want to pull those, too. Check your .bashrc
, .profile
and .bash_profile
files, among other things.
您也可能有一个/etc/rvmrc
文件,或者您的主目录~/.rvmrc
中也有一个文件也可能需要删除.
You may also have an /etc/rvmrc
file, or one in your home directory ~/.rvmrc
that may need to be removed as well.
这篇关于如何从系统中删除RVM(Ruby版本管理器)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!