install ruby 2.7.2 on ubuntu code example Example: how to install ruby on ubuntu sudo apt update && sudo apt install -y ruby-full && ruby --version