且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从系统中删除RVM(Ruby版本管理器)

更新时间:2023-02-22 20:02:19

有一个简单的内置命令将其拉出:

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.