{"id":22031,"date":"2023-10-01T15:27:37","date_gmt":"2023-10-01T15:27:37","guid":{"rendered":"https:\/\/linuxways.net\/?p=22031"},"modified":"2023-10-01T15:28:21","modified_gmt":"2023-10-01T15:28:21","slug":"how-to-install-ruby-bundle-in-ubuntu","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-ruby-bundle-in-ubuntu\/","title":{"rendered":"How to install Ruby bundle in Ubuntu?"},"content":{"rendered":"<p>The <strong>Ruby Bundler <\/strong>streamlines the installation process of Gem Packages. It is an additional layer on top of the RubyGems and ensures the dependencies of both the system and the gem package before installing a Gem Package. It matches the compatible version of Gem with the Ubuntu System which helps in avoiding any dependency issues.<\/p>\n<p>This article discusses the installation process of Ruby Bundler in Ubuntu.<\/p>\n<h2><strong>How to Install the Ruby Bundle in Ubuntu?<\/strong><\/h2>\n<p>The Ruby Bundler can easily be installed from the official repository of RubyGems using the Terminal. The following steps explain the installation process of Ruby Bundler in detail.<\/p>\n<h3><strong>Step 1: Open Terminal<\/strong><\/h3>\n<p>To open the Terminal, open the \u201cShow Applications\u201d menu by clicking on the \u201cApplications Menu\u201d icon on the Home Screen:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1080\" class=\"wp-image-22032\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-1.png 1920w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-1-300x169.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-1-1024x576.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-1-768x432.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-1-1536x864.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>The Applications Menu will Open and you will see the Search Box at the Top of the Menu. In the search box, type \u201cterminal\u201d. The Terminal Application will appear:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1180\" height=\"406\" class=\"wp-image-22034\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-2.png 1180w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-2-300x103.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-2-1024x352.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-2-768x264.png 768w\" sizes=\"auto, (max-width: 1180px) 100vw, 1180px\" \/><\/p>\n<p>Click on the Icon to open Terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"741\" height=\"266\" class=\"wp-image-22035\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-3.png 741w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-3-300x108.png 300w\" sizes=\"auto, (max-width: 741px) 100vw, 741px\" \/><\/p>\n<p>Instead of going to the Applications Menu and then searching for Terminal, you can fire up the Terminal using the \u201cctrl+alt+t\u201d shortcut key as well:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1514\" height=\"460\" class=\"wp-image-22036\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-4.png 1514w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-4-300x91.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-4-1024x311.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-4-768x233.png 768w\" sizes=\"auto, (max-width: 1514px) 100vw, 1514px\" \/><\/p>\n<h3><strong>Step 2: Update Existing Packages<\/strong><\/h3>\n<p>Before installing Ruby in Ubuntu, ensure that the existing packages in your Ubuntu System are up to date. Update your existing packages using the Command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">apt-get update<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1097\" height=\"278\" class=\"wp-image-22037\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-5.png 1097w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-5-300x76.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-5-1024x260.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-5-768x195.png 768w\" sizes=\"auto, (max-width: 1097px) 100vw, 1097px\" \/><\/p>\n<p>Once the packages are updated, upgrade them using the \u201cupgrade\u201d command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">apt-get upgrade<\/span><\/div><\/div>\n<p>Wait for the packages to upgrade:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1093\" height=\"132\" class=\"wp-image-22038\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-6.png 1093w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-6-300x36.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-6-1024x124.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-6-768x93.png 768w\" sizes=\"auto, (max-width: 1093px) 100vw, 1093px\" \/><\/p>\n<h3><strong>Step 3: Install Ruby<\/strong><\/h3>\n<p>After updating your Ubuntu System Packages, install Ruby first by using the \u201capt-get\u201d command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">apt-get install<\/span> ruby ruby-dev<\/div><\/div>\n<p>Wait for the ruby packages to download and install:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1097\" height=\"115\" class=\"wp-image-22039\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-7.png 1097w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-7-300x31.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-7-1024x107.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-7-768x81.png 768w\" sizes=\"auto, (max-width: 1097px) 100vw, 1097px\" \/><\/p>\n<h3><strong>Step 4: Set Up Bundler<\/strong><\/h3>\n<p>To install the Ruby Bundler, the \u201cgem\u201d command is used as Bundler is a Gem to Bundle up Gems in Ubuntu. Install the Ruby Bundler using the Command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> gem <span class=\"kw2\">install<\/span> bundler<\/div><\/div>\n<p>Once the installation is completed, the terminal will inform about the Gem being installed:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1103\" height=\"148\" class=\"wp-image-22040\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-8.png 1103w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-8-300x40.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-8-1024x137.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-8-768x103.png 768w\" sizes=\"auto, (max-width: 1103px) 100vw, 1103px\" \/><\/p>\n<h2><strong>Bonus Step: Remove Ruby<\/strong><\/h2>\n<p>Ruby Bundler can be removed once you do not require any more need for it using the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt remove ruby<\/div><\/div>\n<p>While removing, it will ask for confirmation. Enter \u201cY\u201d to continue with the removal process:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1095\" height=\"484\" class=\"wp-image-22041\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-9.png 1095w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-9-300x133.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-9-1024x453.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-22031-9-768x339.png 768w\" sizes=\"auto, (max-width: 1095px) 100vw, 1095px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p><strong>Ruby Bundler<\/strong> is installed from the terminal using the \u201cgem\u201d installation command by updating the existing packages first and then installing Ruby with the \u201capt install ruby ruby-dev\u201d command. This article explained the installation method for Ruby Bundler in Ubuntu.<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Install Ruby Bundler from the terminal by first installing Ruby with the \u201capt install ruby ruby-dev\u201d command and then setting it up with the \u201cgem\u201d command. <\/p>","protected":false},"author":110,"featured_media":22033,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-22031","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/22031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=22031"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/22031\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/22033"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=22031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=22031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=22031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}