#1. Check Ruby version $ ruby -v #2. Install Ruby Manager $ curl -L https://get.rvm.io | bash -s stable #3. Install Ruby $ rvm install ruby-[version] # my version 3.1.2 command will be $ rvm install ruby-3.1.2