SDKMAN Practice

SDKMAN Practice

http://sdkman.io/

https://github.com/sdkman

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

SDK Installation Candidates

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,941评论 0 23
  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的阅读 13,552评论 5 6
  • 1. 我决定是否要24号装柜,是否要退货,采购才能弄 2. 明天看一下客户的款什么时候到的,客户要求六月份必须发货...
    irisxiang阅读 234评论 0 0
  • 生活并不是短跑,而是一场马拉松,投资亦是如此。 1、盘面一览 周五大盘小幅低开后全天都维持小幅震荡走势,沪...
    阿凯古阅读 304评论 1 8
  • 月儿躲到了云层后面; 星星藏在了月色里面; 小小人儿躺在草坪上; 想起远方的那个她; 风儿从身上飘过; 却带不走那...
    冰火之殇阅读 285评论 0 1