'Where does sdkman install packages?
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.
Solution 1:[1]
I've checked it on my system. It should be located in $HOME/.sdkman/candidates/.
Solution 2:[2]
I think the best way would be to use SDKMan's home command:
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:[3]
Upon installation, SDKMAN creates an environment variable $SDKMAN_DIR which points to the installation directory.
Usuall it's ~/.sdkman
Solution 4:[4]
Where's SDKMan installed:
echo @SDKMAN_DIR
Where did it just install gradle? (or some other package)
which gradle
Solution 5:[5]
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 6:[6]
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-adptstores files in$HOME/.sdkman/candidates/java/8.0.272.hs-adpt.sdk install sbt 1.3.13stores 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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Tom Gijselinck |
| Solution 2 | rickchristie |
| Solution 3 | Sudip Bhandari |
| Solution 4 | Lodlaiden |
| Solution 5 | Community |
| Solution 6 |
