We now have Ruby packages for the current Ubuntu LTS release: Focal, 20.04. A bit overdue but they’re here now. We’re currently supporting Ruby 2.4, 2.5, 2.6 and 2.7 for Focal until its end of life in 2025, but will of course release newer versions as they come along (Ruby 3.0 packages are already in progress).
For now, we don’t have plans to support any older versions of Ruby on Focal, mainly due to lack of support for OpenSSL 1.0. But if you need that and would like to sponsor the work, get in touch with us. We’re still supporting Ruby 2.3 for Ubuntu Bionic 18.04 (until 2023), and supporting versions all the way back to 1.8 on Xenial 16.04 (though standard support for Xenial ends in April this year).
As ever, just add our repository, if you haven’t already:
$ sudo apt-add-repository ppa:brightbox/ruby-ng $ sudo apt-get update
Install the packages you require:
$ sudo apt-get install ruby2.7 ruby2.7-dev ruby2.5 ruby2.5-dev
And you’re up and running:
$ ruby2.5 -v ruby 2.5.8p224 (2020-03-31 revision 67882) [x86_64-linux-gnu] $ gem2.5 -v 220.127.116.11
ruby-switch tool to change the system-wide default version of Ruby if
you prefer, though we generally recommend using the versioned binaries directly.
If you don’t need paid support and just want to support our work, we’ve got a Patreon page you can use: https://www.patreon.com/brightbox