I am sure that the old version is prepackaged.
Apt get install ruby.
Snap ubuntu or other linux distributions.
To install ruby from the default ubuntu repositories follow these steps.
Sudo apt get install ruby.
Using the yum package manager for rhel centos and fedora.
I did sudo apt get install ruby 2 0 0 and installed correctly but when i do ruby v i am getting the 1 8 7 version.
The ruby full package provides the old stable release on debian and ubuntu.
The installed version is typically the latest version of ruby available at the release time of the specific distribution version.
Install ruby by typing.
Sudo yum install ruby.
In debian gnu linux and ubuntu we can install ruby as shown below.
You can use it like this.
Dadurch wird auf ubuntu oder debian zum stand der entstehung dieses artikels ruby 2 3 1 installiert eine ältere stabile version.
At the time of writing the version in the ubuntu repositories is 2 5 1 which is the latest stable version of ruby.
I am currently deploying an app on digital ocean so i am switching to linux ox temporarily.
The easiest way to install ruby on your ubuntu system is through the apt package manager.
Sudo apt get install ruby full yum centos fedora or rhel centos fedora and rhel use the yum package manager.
Apt debian oder ubuntu unter debian oder ubuntu wird apt als paketverwaltung genutzt ruby lässt sich damit folgendermaßen installieren.
Steps to install ruby.
First update the packages index.