Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove RVM (Ruby Version Manager) from my system

Tags:

ruby

rubygems

rvm

How can I remove RVM (Ruby Version Manager) from my system?

like image 931
lucianosousa Avatar asked Aug 24 '10 16:08

lucianosousa


People also ask

How do I uninstall ruby RVM?

There are two ways to remove rubies from rvm: rvm remove # Removes the ruby, source files and optional gemsets / archives. rvm uninstall # Just removes the ruby - leaves everything else.

How do I uninstall old Ruby version?

Any gems that you install while using an RVM's ruby version, is self contained in that version. However there may come a time when you no longer want to use a particular ruby version and want to delete it along with all it's gems. Then this can be done using the “remove” command.


1 Answers

There's a simple command built-in that will pull it:

rvm implode 

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 

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.

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.

You may also have an /etc/rvmrc file, or one in your home directory ~/.rvmrc that may need to be removed as well.

like image 132
tadman Avatar answered Sep 20 '22 18:09

tadman