Where does SDKMAN install packages?
Asked Answered
K

6

131

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.

Kinetics answered 20/12, 2015 at 11:15 Comment(3)
If I'm not mistaken, it should be in one of the dot folders in your home directory.Bust
this is the installation directory of sdkman, no sign of the installed groovy or grailsKinetics
Run which groovy to discover the location of the executable.Broadloom
B
198

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

Bust answered 20/12, 2015 at 12:6 Comment(1)
For example, on my Mac I found the installed Java Virtual Machines here: /Users/my_user_name_here/.sdkman/candidates/javaVitus
S
22

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
Sturm answered 3/10, 2020 at 12:10 Comment(1)
"Somedude where's my Java" - starring Ashton Kutcher, Sean William ScottAim
B
10

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

Usuall it's ~/.sdkman

Bixler answered 21/6, 2018 at 11:45 Comment(0)
P
2

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>

Presber answered 10/5, 2018 at 19:11 Comment(0)
V
2

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.

Valentino answered 9/11, 2020 at 3:33 Comment(0)
S
2

Where's SDKMan installed:

echo @SDKMAN_DIR

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

which gradle
Stepfather answered 15/6, 2021 at 2:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.