Install SDKMan on MacOS or Linux

From Bonus Bits
Jump to: navigation, search

Purpose

This article gives the steps to Install Java Software Development Kit Manager (SDKMan) on MacOS or Linux.


Prerequisites


Install

  1. Download / Install
    curl -s "https://get.sdkman.io" | bash
    
  2. Close Terminal and Open new one or source the skdman-init.sh


Configure BASH Profile

This will be appended to the bottom of your .bash_profile:

# SDK Man replaced GVM. Using for Groovy, Gradle, and Maven Version Management
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"


Uninstall SDKMan

  • rm -rf $HOME/.sdkman
    


Related Articles


Sources