SDKmanは行く方法です:
The Software Development Kit Manager
SDKMAN! is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems. It provides a convenient Command Line Interface (CLI) and API for installing, switching, removing and listing Candidates. Formerly known as GVM the Groovy enVironment Manager, it was inspired by the very useful RVM and rbenv tools, used at large by the Ruby community.
https://sdkman.io/
具体的にはRVMについて言及し、RVMと同様に、次の方法でインストールしcurlます。
今すぐ始めましょう!
続けて、ターミナルで以下を貼り付けて実行します。
$ curl -s "https://get.sdkman.io" | bash