Deleting .rbenv from Linux
Solution 1
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
).
Solution 2
If you installed rbenv using apt-get, then
apt-get remove rbenv
or
sudo apt-get purge --auto-remove rbenv
is a good first step. Next steps should be: nuke the ~/.rbenv
directory and all references to "rbenv" in ~/.bashrc
, .bash_profile
, or similar shell initialization files.
Zippie
🍿 Senior Software Engineer at Netflix ✈️ I deploy to production from airplanes 💎 Former organizer of RubyZagreb Meetups
Updated on January 08, 2020Comments
-
Zippie over 4 years
How can i completely uninstall
rbenv
?I want to install
rvm
and I want to get rid ofrbenv
completely so they don't clash.This is what I did so far:
rm -rf ~/.rbenv
cleared all the lines added to my
~/.profile
fileclosed and reopened my shell
But still get left with a
rbenv
command line tool so when i runrbenv
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 getusr/bin/rbenv
. Should it be safe to just delete it from there?