我使用 Sdkman来安装 Groovy,运行良好。安装的软件包现在在哪里?我需要它的路径。我在 Ubuntu 14.04上。
我在系统里查过了,应该在 $HOME/.sdkman/candidates/里。
$HOME/.sdkman/candidates/
在你运行 source $HOME/.sdkman/bin/sdkman-init.sh之后。 您可以通过运行以下命令查看 sdkman“安装”:
source $HOME/.sdkman/bin/sdkman-init.sh
declare -f
$mac 上的主页是/用户/<users>
<users>
Upon installation, SDKMAN creates an environment variable $SDKMAN_DIR which points to the installation directory.
$SDKMAN_DIR
通常都是 ~/.sdkman
~/.sdkman
我认为最好的方法是使用 SDKMan 的 home命令:
home
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
SDKMAN 将文件存储在 $HOME/.sdkman/candidates/中,就像汤姆提到的那样,这个问题的答案会更加详细。
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.
sdk home sbt 1.3.13
/Users/powers/.sdkman/candidates/sbt/1.3.13
sdk install命令的参数与文件存储在 $HOME/.sdkman/candidates中的位置保持一致。
sdk install
$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 java 8.0.272.hs-adpt
$HOME/.sdkman/candidates/java/8.0.272.hs-adpt
sdk install sbt 1.3.13在 $HOME/.sdkman/candidates/sbt/1.3.13中存储文件。
sdk install sbt 1.3.13
$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.
$HOME/.sdkman/archives
$HOME/.sdkman/archives/java-8.0.272.hs-adpt.zip
$HOME/.sdkman/archives/sbt-1.3.13.zip
有些二进制文件非常大,最终会占用计算机的大量空间。您应该使用 sdk flush archives命令定期删除它们。一旦你安装了软件,你就不再需要二进制文件了。有关详细信息,请参阅 给你。
sdk flush archives
SDKMan 的安装位置:
echo @SDKMAN_DIR
它刚刚在哪里安装梯级? (或其他一些软件包)
which gradle