0

I have a raspberry pi which has the latest raspbian os. If I install ruby in it using sudo apt-get install ruby-full, ruby 2.5 version is installed. I have another raspberry pi which is running the older raspbian os. If I run the same above command in it, ruby 2.3 version is installed.

How can I update the 2.3 version to 2.5. Please help. Thanks

Here is the response of cat /etc/os-release of my older raspbian os

PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
4
  • 1
    if by "older raspbian" you mean something before buster, the solution is to install buster Feb 2 at 5:01
  • @JaromandaX I am using stretch. I have updated the question
    – S Andrew
    Feb 2 at 5:06
  • 1
    the solution is to install buster Feb 2 at 9:49
  • You could also install any version of ruby you like through either RVM or rbenv.
    – Dan
    Jul 5 at 12:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.