Link Menu Search Expand Document

asdf

Tool used to manage versions of different runtimes (such as ruby, python, nodejs, etc).

Install asdf

When using Arch Linux, it can be installed from AUR:

paru -S asdf-vm

Install a plugin

List of existing plugins here

asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby

or

asdf plugin-add python

Install the tool version

asdf install ruby latest

Set the tool version

In the directory where you want to have the tool available run:

asdf local ruby latest

This creates the .tool-versions and in this case also the .ruby-version files in the current directory that instruct asdf on what version of ruby to use.

Configure the global runtimes

For the global runtimes it is probably best to use what the system makes available.

asdf global ruby system
asdf global python system

Gilgalab Knowledge Base