sdkman / sdkman-cli

The SDKMAN! Command Line Interface
https://sdkman.io
Apache License 2.0
6.13k stars 630 forks source link

No gvm tool uninstallation notes or scripts #258

Open bmike opened 10 years ago

bmike commented 10 years ago

The read me might be better with a short section at the end on how to uninstall the tool if desired.

Bonus points for making the scripts that touch the shell rc and profile dot files reversible, but just documenting what should be removed would be a nice addition to the project documentation.

LEQADA commented 4 years ago

I went through the installation bash and it seems like it's enough to remove the following directory

$HOME/.sdkman

and clean up the the following snippet

#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$SDKMAN_DIR"
[[ -s "${SDKMAN_DIR}/bin/sdkman-init.sh" ]] && source "${SDKMAN_DIR}/bin/sdkman-init.sh"

from the following files if you're NOT on MacOS

"${HOME}/.bashrc"
"${HOME}/.zshrc"

and from the following files if you are on MacOS

"${HOME}/.bash_profile"
"${HOME}/.zshrc"

Assuming you removed all the installed SDKs and that sdkman removes all the traces of them properly, this should be all you need to do.

Important The installation script might change over time and make this comment outdated.