Installing SDKMAN! on UNIX-like platforms is as easy as ever.
SDKMAN! installs smoothly on Mac OSX, Linux, Cygwin,
Solaris and FreeBSD. We also support Bash and ZSH shells.
Simply open a new terminal and enter:
$ curl -s "https://get.sdkman.io" | bash
Follow the instructions on-screen to complete installation.
Next, open a new terminal or enter:
$ source "$HOME/.sdkman/bin/sdkman-init.sh"
Lastly, run the following code snippet to ensure that installation succeeded:
$ sdk version
If all went well, the version should be displayed. Something like:
For the more adventurous among us, we have a beta channel.
All new CLI features will first be rolled out to this group of users for trial purposes.
Beta versions can be considered stable for the most part, but might occasionally break.
To join the beta program, simply update the the
~/.sdkman/etc/config file as follows:
Next, open a new terminal and perform a forced update with:
To leave the beta channel, simply set the above config back to
$ sdk selfupdate force
false and follow the same procedure.
UninstallationIn the unlikely event that you would like to uninstall SDKMAN!, we don't have
an automated way of doing this yet. If you really do want to remove it from your
system, it is very easy to do so.The following will guide you through backing up, then removing the entire installation from your system.
The last step involves editing and removing the initialisation snippet from your
tar zcvf ~/sdkman-backup_$(date +%F-%kh%M).tar.gz -C ~/ .sdkman
$ rm -rf ~/.sdkman
.profile files. If you use ZSH, remove it from the
.zshrc file. The snippet of code to be removed looks something like this:
Once removed, you have successfully uninstalled SDKMAN! from your machine.
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
[[ -s "/home/dudette/.sdkman/bin/sdkman-init.sh" ]] && source "/home/dudette/.sdkman/bin/sdkman-init.sh"