Archives For Ruby

Ruby, interpreted object-oriented scripting language, now can be installed easily in Ubuntu 16.04 and higher via Snap package.

The official Ruby snap, containerised software package, was finally released for Linux Desktop. While Ruby is always old in Ubuntu universe repositories, Ruby snap is always updated!

How to Install Ruby Snap in Ubuntu:

1. (Only required for Ubuntu 16.04) Open terminal (Ctrl+Alt+T) and run command to make sure snapd daemon is installed:

sudo apt install snapd snapd-xdg-open

Type user password (no asterisks feedback) when it prompts and hit Enter to continue.

2. For Ubuntu 18.04 and higher, directly install the Ruby snap from Ubuntu Software:

or install it via command (also works in Ubuntu 16.04):

snap install ruby --classic

3. Once installed successfully, check via command /snap/bin/ruby --version:

That’s it!