1. Download Ruby3.3 and install it
Execute in sequence
wget https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0.tar.gz
tar -zxvf ruby-3.3.0.tar.gz
cd ruby-3.3.0
./configure
make
make install
2. Check version
ruby -v
Execute in sequence
wget https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0.tar.gz
tar -zxvf ruby-3.3.0.tar.gz
cd ruby-3.3.0
./configure
make
make install
ruby -v