{"id":8336,"date":"2018-11-07T15:11:07","date_gmt":"2018-11-07T15:11:07","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=8336"},"modified":"2018-11-07T15:11:07","modified_gmt":"2018-11-07T15:11:07","slug":"install-ruby-2-5-3-snap-ubuntu-18-04-18-10","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2018\/11\/install-ruby-2-5-3-snap-ubuntu-18-04-18-10\/","title":{"rendered":"Install The Latest Ruby 2.5.3 Easily via Snap in Ubuntu 18.04, 18.10"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/11\/ruby-lang-icon.png\" alt=\"\" width=\"245\" height=\"250\" class=\"aligncenter size-full wp-image-8337\" \/><\/p>\n<p><a href=\"https:\/\/www.ruby-lang.org\" target=\"_blank\">Ruby<\/a>, interpreted object-oriented scripting language, now can be installed easily in Ubuntu 16.04 and higher via <b>Snap<\/b> package.<\/p>\n<p>The <b>official Ruby snap<\/b>, containerised software package, was finally released for Linux Desktop. While Ruby is always old in Ubuntu universe repositories, Ruby snap is always updated!<\/p>\n<h4>How to Install Ruby Snap in Ubuntu:<\/h4>\n<p><b>1. (Only required for Ubuntu 16.04)<\/b> Open terminal (Ctrl+Alt+T) and run command to make sure <code>snapd<\/code> daemon is installed:<\/p>\n<pre style=\"border:none;\">sudo apt install snapd snapd-xdg-open<\/pre>\n<p><i>Type user password (no asterisks feedback) when it prompts and hit Enter to continue.<\/i><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/07\/install-snapd-xdg-600x89.jpg\" alt=\"\" width=\"600\" height=\"89\" class=\"aligncenter size-large wp-image-6976\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/07\/install-snapd-xdg-600x89.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/07\/install-snapd-xdg-450x67.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/07\/install-snapd-xdg.jpg 709w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>2.<\/b> For Ubuntu 18.04 and higher, directly install the Ruby snap from Ubuntu Software:<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/11\/ruby-snap.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/11\/ruby-snap-450x266.jpg\" alt=\"\" width=\"450\" height=\"266\" class=\"aligncenter size-medium wp-image-8338\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/11\/ruby-snap-450x266.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/11\/ruby-snap-768x454.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/11\/ruby-snap-600x355.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/11\/ruby-snap.jpg 906w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<p>or install it via command (also works in Ubuntu 16.04):<\/p>\n<pre style=\"border:none;\">snap install ruby --classic<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/11\/ruby-snap-install-600x94.jpg\" alt=\"\" width=\"600\" height=\"94\" class=\"aligncenter size-large wp-image-8340\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/11\/ruby-snap-install-600x94.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/11\/ruby-snap-install-450x71.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/11\/ruby-snap-install.jpg 744w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>3.<\/b> Once installed successfully, check via command <code>\/snap\/bin\/ruby --version<\/code>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/11\/ruby-version-600x91.jpg\" alt=\"\" width=\"600\" height=\"91\" class=\"aligncenter size-large wp-image-8339\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/11\/ruby-version-600x91.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/11\/ruby-version-450x68.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/11\/ruby-version.jpg 744w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>That&#8217;s it!<\/p>","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,6],"tags":[1601,1600,1602],"class_list":["post-8336","post","type-post","status-publish","format-standard","hentry","category-howtos","category-news","tag-install-latest-ruby-ubuntu","tag-ruby","tag-ruby-snap"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/8336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=8336"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/8336\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=8336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=8336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=8336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}