SDKMAN (Software Development Kit Manager CLI) is a tool for managing parallel Versions of multiple Software Development Kits on any Unix based system. It provides a convenient command line interface for installing, switching, removing and listing Candidates.
Installation:
#curl -s "https://get.sdkman.io" | bash
#source "$HOME/.sdkman/bin/sdkman-init.sh"
Check Version:
#sdk versiokn
Development Kits
Install:
#sdk list <software>
#sdk list java
#sdk install java 7.0.181-zulu
#sdk install java 11.0.6.j9-adpt
The installation could be find in:
<user.home>/.sdkman/candidates/
Uninstall:
#sdk uninstall java 7.0.181-zulu
User Version:
#sdk use java 7.0.181-zulu
Default Version:
#sdk default java 7.0.181-zulu
View Current Versions:
#sdk current
Upgrade Version:
#sdk upgrade java
#sdk upgrade
for more reference http://sdkman.io