update ruby 2.7 to 3.0 version ubuntu code example Example 1: brew install ruby brew install ruby Example 2: install ruby $ sudo apt-get install ruby-full