Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deleting .rbenv from Linux

How can i completely uninstall rbenv ?

I want to install rvm and I want to get rid of rbenv completely so they don't clash.

This is what I did so far:

  1. rm -rf ~/.rbenv

  2. cleared all the lines added to my ~/.profile file

  3. closed and reopened my shell

But still get left with a rbenv command line tool so when i run rbenv i get the same output as before, with all the options, minus all the ruby versions i had installed before.

EDIT:

When i run which rbenv i get usr/bin/rbenv. Should it be safe to just delete it from there?

like image 677
Zippie Avatar asked Sep 30 '13 21:09

Zippie


1 Answers

Michael Durrant helped me with his comment, i was an idiot not to think that way in the first place, i just had to do:

apt-get remove rbenv

Since i didn't install it through a package manager, rather followed the instructions on GitHub, i thought that it wasn't appropriate (although i first tried apt-get uninstall instead of apt-get remove).

like image 177
Zippie Avatar answered Oct 08 '22 01:10

Zippie