如何从我的系统中删除 RVM(Ruby 版本管理器) [英] How to remove RVM (Ruby Version Manager) from my system

查看:15
本文介绍了如何从我的系统中删除 RVM(Ruby 版本管理器)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从我的系统中删除 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/ 目录和其中内置的所有 rubies.为了删除 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, if you installed that:

gem uninstall rvm

Homebrew、Apt 或 DNF 安装可能会遗留一些需要删除的元素.这首先取决于您如何安装它.该清理步骤是可选的,因为 RVM 将不再涉及 Ruby,但可以帮助保持井井有条.

There may be elements left over from a Homebrew, Apt or DNF install of it that require removal as well. This depends on how you installed it in the first place. That clean-up step is optional, as RVM will no longer be involved in Ruby, but can help keep things organized.

如果您对 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 版本管理器)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆