Skip to content

Instantly share code, notes, and snippets.

@omkz
Last active January 16, 2021 14:39
Show Gist options
  • Save omkz/a17a2dd47d96bc952f552f2d75fc5cfb to your computer and use it in GitHub Desktop.
Save omkz/a17a2dd47d96bc952f552f2d75fc5cfb to your computer and use it in GitHub Desktop.
rvm uninstall

$ env | grep rvm

uninstall: Here is a custom script which we name as 'cleanout-rvm'. While you can definitely use 'rvm implode' as a regular user or 'rvmsudo rvm implode' for a system wide install, this script is useful as it steps completely outside of RVM and cleans out RVM without using RVM itself, leaving no traces.

#!/bin/bash
/usr/bin/sudo rm -rf $HOME/.rvm $HOME/.rvmrc /etc/rvmrc /etc/profile.d/rvm.sh /usr/local/rvm /usr/local/bin/rvm
/usr/bin/sudo /usr/sbin/groupdel rvm
/bin/echo "RVM is removed. Please check all .bashrc|.bash_profile|.profile|.zshrc for RVM source lines and delete
or comment out if this was a Per-User installation."

pastikan

$HOME/.rvm
$HOME/.rvmrc
/etc/rvmrc
/etc/profile.d/rvm.sh
/usr/share/rvm

ref:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment