Install The Latest Ruby 2.5.3 Easily via Snap in Ubuntu 18.04, 18.10

Install The Latest Ruby 2.5.3 Easily via Snap in Ubuntu 18.04, 18.10

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.

Install The Latest Ruby 2.5.3 Easily via Snap in Ubuntu 18.04, 18.10

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

Install The Latest Ruby 2.5.3 Easily via Snap in Ubuntu 18.04, 18.10

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

snap install ruby --classic

Install The Latest Ruby 2.5.3 Easily via Snap in Ubuntu 18.04, 18.10

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

Install The Latest Ruby 2.5.3 Easily via Snap in Ubuntu 18.04, 18.10

That’s it!

Original Article

Related Post

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.