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