Compare the version number returned with the version number on the ruby download page.
Linux update ruby version.
It can also sometimes reveal the version you are using as it is usually part of directory structure.
It is available out of the box on ubuntu but snap also works on many other linux distributions.
These numbers don t have to be exact but if you are running a version that s too old some of the features may not work correctly.
Sudo apt install ruby full.
The output will look something like this.
To verify that you have a current version of ruby run the command ruby v.
To verify that the installation it was successful run the following command which will print the ruby version.
The installed version is typically the latest version of ruby available at the release time of the specific distribution version.
Read our next articles to deploy ruby with apache or ruby with nginx web server with simple steps.
Ruby 2 5 1p57 2018 03 29 revision 63029 x86 64 linux gnu installing ruby using rbenv.
Which ruby home rupert rvm rubies ruby 2 4 1 bin ruby.
Download ruby here you can get the latest ruby distributions in your favorite flavor.
The current stable version is 2 7 1.
Ruby version ruby 2 7 0p0 2019 12 25 revision 647ee6f091 x86 64 linux congratulation s finally you have successfully installed ruby on your system.
Rvm install 2 6 1 rvm use 2 6 1 default.
Just run which ruby.
Snap ubuntu or other linux distributions snap is a package manager developed by canonical.
Install appropriate ruby packages.
Please be sure to read ruby s license.
To do this we will use the ruby version manager you installed when you did your original system install.
Install ruby by typing.
Do you want to know where your ruby binary is installed.