how to update ruby in mac os code example Example 1: brew install ruby Click to copybrew install ruby Example 2: install ruby Click to copy$ sudo apt-get install ruby-full