Each year, on the 25th of December, the Ruby community receives the gift of a new release of Ruby. 2018 was no exception, and Ruby 2.6.0 arrived as promised.
And like every other release, we’ve packaged it for Ubuntu and released it to our Ruby Ubuntu package repository.
Using it is super easy. Just add our repository, if you haven’t already:
$ sudo apt-add-repository ppa:brightbox/ruby-ng
$ sudo apt-get update
Install the packages:
$ sudo apt-get install ruby2.6 ruby2.6-dev
And you’re up and running:
$ ruby2.6 -v
ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-linux-gnu]
$ gem2.6 -v
3.0.1
Ruby 2.6 is currently available for 16.04 (Xenial) and 18.04 (Bionic). Trusty support may follow (but remember that Ubuntu’s support for Trusty ceases in April!)
As always, the same repository provides updated Ruby packages for 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4 and 2.5 for Trusty through to the latest LTS supported Ubuntu release (currently Bionic).
If you need official support with service level agreements for these packages then contact us. Otherwise, you can use the mailing list.
For more details on what’s provided and how to use it, see the docs page.
You can sign up for Brightbox in just a couple of minutes and use your £50 free credit to play with Ruby 2.6 on a UK cloud server.