Where does sdkman install packages?

PackagePackage ManagersSdkman

Package Problem Overview


I used sdkman to install groovy which went fine. Where is the installed package now? I need the path for it. I am on Ubuntu 14.04.

Package Solutions


Solution 1 - Package

I've checked it on my system. It should be located in $HOME/.sdkman/candidates/.

Solution 2 - Package

I think the best way would be to use SDKMan's home command:

https://sdkman.io/usage#home

Something like this (taken from the above page):

$ sdk home java 11.0.7.hs-adpt
/home/somedude/.sdkman/candidates/java/11.0.7.hs-adpt

Solution 3 - Package

Upon installation, SDKMAN creates an environment variable $SDKMAN_DIR which points to the installation directory.

Usuall it's ~/.sdkman

Solution 4 - Package

After you have run source $HOME/.sdkman/bin/sdkman-init.sh. You can see the sdkman "installation" by running:

declare -f

$HOME on mac is /Users/<users>

Solution 5 - Package

Where's SDKMan installed:

echo @SDKMAN_DIR

Where did it just install gradle? (or some other package)

which gradle

Solution 6 - Package

SDKMAN stores file in $HOME/.sdkman/candidates/ as Tom mentioned and this answer goes into more detail.

To find where SBT 1.3.13 is installed, type sdk home sbt 1.3.13. It'll return something like /Users/powers/.sdkman/candidates/sbt/1.3.13.

The arguments to the sdk install command align with where the files are stored in $HOME/.sdkman/candidates.

  • sdk install java 8.0.272.hs-adpt stores files in $HOME/.sdkman/candidates/java/8.0.272.hs-adpt.

  • sdk install sbt 1.3.13 stores files in $HOME/.sdkman/candidates/sbt/1.3.13.

When you run sdk install, the downloaded binaries get saved in $HOME/.sdkman/archives. For example, $HOME/.sdkman/archives/java-8.0.272.hs-adpt.zip and $HOME/.sdkman/archives/sbt-1.3.13.zip.

Some of the binaries are pretty big and can end up taking a lot of space on your computer. You should periodically delete them with the sdk flush archives command. Once you install the software, you don't need the binaries anymore. See here for more details.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMed TumyView Question on Stackoverflow
Solution 1 - PackageTom GijselinckView Answer on Stackoverflow
Solution 2 - PackagerickchristieView Answer on Stackoverflow
Solution 3 - PackageSudip BhandariView Answer on Stackoverflow
Solution 4 - PackagetimtView Answer on Stackoverflow
Solution 5 - PackageLodlaidenView Answer on Stackoverflow
Solution 6 - PackagePowersView Answer on Stackoverflow