I can't uninstall rbenv from Debian 8 server.
Readme says "simply remove the rbenv init line from your shell startup configuration"
I can't found rbenv init. Where is shell startup configuration?
The "shell startup configuration" files are typically named like this and are in your home directory: .profile, .bashrc, .bash_profile, .zshrc, .zshenv (depending on the shell that you use). Check them for any mention of "rbenv" and delete only those lines that mention it.
You can use the grep command to search all your shell configuration files:
grep -i rbenv ~/.* 2>/dev/null
If there are no results returned, that means there is nothing to remove.
After that, and restarting your shell, running ruby or any Ruby-related command will not go through rbenv anymore.
Additionally, to eliminate any remains of rbenv installation on your system, you should remove the directory listed by rbenv root command (typically this is ~/.rbenv), and then remove the rbenv package itself if it was installed by a package manager.
I hope all this helps!
Most helpful comment
The "shell startup configuration" files are typically named like this and are in your home directory:
.profile,.bashrc,.bash_profile,.zshrc,.zshenv(depending on the shell that you use). Check them for any mention of "rbenv" and delete only those lines that mention it.You can use the
grepcommand to search all your shell configuration files:If there are no results returned, that means there is nothing to remove.
After that, and restarting your shell, running
rubyor any Ruby-related command will not go through rbenv anymore.Additionally, to eliminate any remains of rbenv installation on your system, you should remove the directory listed by
rbenv rootcommand (typically this is~/.rbenv), and then remove the rbenv package itself if it was installed by a package manager.I hope all this helps!