- asdf is cool tool if you have a limited disk space.
- Nor docker containers neither Nixos packages can help when disk space is really small as most of Macs has.
- You can test a new language or tool, see the results and remove without having leftover in your system if you like to.
- install asdf with git
- Btw, you can check the snapd if you are on Ubuntu!
https://asdf-vm.com/#/core-manage-asdf-vm
asdf plugin-list-all #show all plugins could be installed
asdf plugin-add java #add this plugin to local asdf repo
asdf list all java # show all versions of this plugin
asdf install java adopt-openjdk-8u242-b08 # select version to install
asdf global java adopt-openjdk-8u242-b08 #set global version of java for OS
asdf local java adopt-openjdk-8u242-b08 #set local version of java only valid for THIS shell
asdf reshim #reshim commands when needed. read reshim for more info
where is asdf? check sub dirs to see what is where.
~/.asdf
- Some programming languages could need additional libs for your OS to compile. Double check if you have necessary libs before you go ahead. For MacOS i prefer to use Macports. You can select brew too. YMMV.
- Always remember that whenever you install some dependent libs, they are only valid for this version of language.
- For example let's say you've installed Go lib with go get, it means it is only usable with current Go version.
- Some plugins consist of binary files only. Nothing to compile.