Problem removing RVM

I am running Ubuntu 10.04 Lucid, and I was probably mistaken to remove the RVM, and now its seams will not be completely removed from the system. Now I would like to install it again, but I have problems.

What happens is that I get strange exits when I try to execute some command lines:

# Note that following command lines don't output the version # (between the word "version" and the word "is") as it should be. $ rvm $ rvm -v > -bash: /usr/local/rvm/scripts/base: No such file or directory > A RVM version is installed yet 1.10.3 is loaded. > Please do one of the following: > * 'rvm reload' > * open a new shell # Even if I use the 'cd' command I have problems... $ cd .. > -bash: /usr/local/rvm/scripts/initialize: No such file or directory > -bash: /usr/local/rvm/scripts/hook: No such file or directory 

This probably means that the RVM is not properly removed, even if ruby ​​stitches also work:

 $ which ruby /usr/local/bin/ruby $ ruby -v ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux] 

So, what can I do to completely remove / remove RVM?


UPDATE

I solved part of the problem (or maybe all the problems): that (those) were related to Phusion Passenger, which was still loading the old path associated with the Ruby version managed by RVM.

+7
source share
3 answers
 RVM installs everything into ~/.rvm. To remove RVM from your system run 'rm -rf ~/.rvm'. 

Refer to this . and where is everything set to?

+5
source

first try echo $rvm_path - if it shows anything - rm -rf it

second:

 sudo rm -rf /ust/local/rvm /etc/rvmrc /etc/profile.d/rvm.sh ~/.rvm* 

next check ls -l /usr/local/bin | grep rvm ls -l /usr/local/bin | grep rvm this will show links to rvm - rm -rf them

and last which rvm - if it shows anything, try checking this path and delete at least this file.

+5
source

From rvm help :

 implode - (seppuku) removes the rvm installation completely. This means everything in $rvm_path (~/.rvm || /usr/local/rvm). This does not touch your profiles. However, this means that you must manually clean up your profiles and remove the lines which source RVM. 

Judging by your $PATH , you can also (alternatively) delete all of the following files and directories:

  • /usr/local/rvm
  • /etc/rvmrc
  • /etc/profile.d/rvm.sh
+1
source

All Articles