SDKMAN Practice
https://github.com/sdkman/sdkman-cli
Installation
Only requires curl and zip/unzip to be present on your system.
Simply open a new terminal and enter:
$ curl -s "https://get.sdkman.io" | bash
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
Usage
Help
You can get basic help by running the following command:
$ sdk help
Installing an SDK
Install the latest stable version of your SDK of choice (say, Java JDK) by running the following command:
$ sdk install java
Need a specific version of an SDK? Simply qualify the version you require:
$ sdk install scala 2.12.1
Remove Version
Remove an installed version.
$ sdk uninstall scala 2.11.6
List Candidates
To get a listing of available Candidates:
$ sdk list
List Versions
To get a listing of Candidate Versions:
$ sdk list groovy
Default Version
Chose to make a given version the default:
$ sdk default scala 2.11.6
This will ensure that all subsequent shells will start with version 2.11.6 in use.
Current Version(s)
To see what is currently in use for a Candidate:
$ sdk current java
To see what is currently in use for all Candidates:
$ sdk current