Install a Ruby version

rbenv

  • A tool to easily install Ruby versions and manage application environments.
    More information: <https://github.com/rbenv/rbenv>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

rbenv install {{version}}

click the source code to copy install rbenv on any operating system with command-not-found.com