Add the following to your .bashrc
or wherever you keep this information. See https://asdf-vm.com/guide/getting-started.html#_3-install-asdf for details if you aren't using bash
ASDF_DIR="${HOME}/.asdf"
if ! [[ -d "$ASDF_DIR" ]]; then
git clone https://github.com/asdf-vm/asdf.git "$ASDF_DIR" --branch v0.11.3
fi
if [[ -d "$ASDF_DIR" ]]; then
. "${ASDF_DIR}/asdf.sh"
. "${ASDF_DIR}/completions/asdf.${shell}"
fi
Source the file. adjust filename to suit.
source ~/.bashrc
Install the python plugin for asdf.
asdf plugin add python
Install the supported versions of python. Adjust the numbers to suit.
for i in {11..7} ; do asdf install python latest:3.$i; done
Make them all available in with the default being the first one in the list.
asdf global python latest:3.{11..7}
Install a bunch of plugins
Ensure latest of all plugins
Nodejs latest doesn't work on amazon linux 2 , the latest LTS version that works is 16 https://nodejs.org/en/download/releases