Working with asdf

asdf

Installation

Dependencies required (on Linux) before setting up Python using asdf

sudo apt install build-essential zlib1g-dev libbz2-dev libssl-dev libsqlite3-dev sqlite libffi-dev libbson-dev -y

Adding Python plugin

~ asdf plugin add python

Installing Python

~ asdf install python 3.9.1

Setting up globally

~ asdf global python 3.9.1
~ python --version
Python 3.9.1

Uninstalling Python

~ asdf uninstall python 3.9.1

Adding Java plugin

asdf plugin-add java https://github.com/halcyon/asdf-java.git

List all available version

~ asdf list-all java | grep openjdk-11.0.2

Installing Java 11

~ asdf install java adoptopenjdk-11.0.2+9

Setting up JAVA_HOME

~ asdf global java adoptopenjdk-11.0.2+9k

For JAVA_HOME
. ~/.asdf/plugins/java/set-java-home.zsh