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).
For more details on what’s provided and how to use it, see the docs page.