Managing Multiple Ruby Versions with asdf

Tadashi Shigeoka ·  Tue, December 27, 2022

This article explains how to install and manage multiple versions of Ruby using the asdf plugin asdf-ruby.

asdf-ruby

Background: Managing Ruby versions with asdf

I needed to install Ruby on M1 macOS and decided to use asdf-ruby for multiple version management.

Prerequisites: Installing asdf

First, complete asdf のインストール [M1 macOS 編].

Installing the asdf-ruby Plugin

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

List of Ruby Versions Available for Installation with asdf-ruby

asdf list-all ruby

Installing Ruby with asdf

asdf install ruby latest
asdf list ruby
  3.2.0

That’s all from the Gemba on starting to manage multiple Ruby versions with asdf.