{"id":39788,"date":"2021-12-29T12:30:00","date_gmt":"2021-12-29T18:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=39788"},"modified":"2022-06-03T03:31:27","modified_gmt":"2022-06-03T08:31:27","slug":"how-to-install-ruby-on-rails-on-debian-11","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/","title":{"rendered":"How to Install Ruby on Rails on Debian 11"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"742\" height=\"372\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-ruby-on-rails-on-debian-11.jpg\" alt=\"How to Install Ruby on Rails on Debian 11\" class=\"wp-image-39816\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-ruby-on-rails-on-debian-11.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-ruby-on-rails-on-debian-11-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-ruby-on-rails-on-debian-11-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\n\n\n\n<p>Ruby on Rails, or simply Rails, is an open-source web application framework built on top of the Ruby programming language. It is used by many developers since it makes application development very simple.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/installing-ruby-on-rails-on-debian-11-1024x683.png?v=1638869062\" alt=\"installing ruby on rails on debian 11\" class=\"wp-image-39921\" width=\"168\" height=\"111\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/installing-ruby-on-rails-on-debian-11-1024x683.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/installing-ruby-on-rails-on-debian-11-300x200.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/installing-ruby-on-rails-on-debian-11-150x100.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/installing-ruby-on-rails-on-debian-11-768x512.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/installing-ruby-on-rails-on-debian-11-1536x1024.png 1536w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/installing-ruby-on-rails-on-debian-11-2048x1365.png 2048w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/installing-ruby-on-rails-on-debian-11-1320x880.png 1320w\" sizes=\"(max-width: 168px) 100vw, 168px\" \/><\/figure><\/div>\n\n\n\n<p>Basically, it&#8217;s a model-view-controller framework that provides default structures for databases, web pages, and various web services.<\/p>\n\n\n\n<p>In the following tutorial, you will learn step-by-step how to install Ruby on Rails on a <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\" target=\"_blank\" rel=\"noreferrer noopener\">Debian<\/a> 11 VPS.<\/p>\n\n\n\n<!--more-->\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ef0ff4c77d3\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ef0ff4c77d3\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/#Requirements\" >Requirements<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/#Step-1-Log-in-via-SSH-and-update-the-system\" >Step 1: Log in via SSH and update the system<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/#Step-2-Install-RVM-Ruby-Version-Manager\" >Step 2: Install RVM (Ruby Version Manager)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/#Step-3-Install-Ruby\" >Step 3: Install Ruby<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/#Step-4-Install-Rails\" >Step 4: Install Rails<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/#Step-5-Install-Nodejs-and-Yarn\" >Step 5: Install Nodejs and Yarn<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/#Step-6-Create-Rails-Application\" >Step 6: Create Rails Application<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-requirements\"><span class=\"ez-toc-section\" id=\"Requirements\"><\/span>Requirements<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>For the purposes of this tutorial, we will be using a\u00a0Debian 11 VPS.<\/li><li>Full SSH root access or a user with sudo privileges is also required.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-1-log-in-via-ssh-and-update-the-system\"><span class=\"ez-toc-section\" id=\"Step-1-Log-in-via-SSH-and-update-the-system\"><\/span>Step 1: Log in via SSH and update the system<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Log in to your Debian VPS with SSH as a root user:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh root@IP_ADDRESS -p PORT_NUMBER<\/pre>\n\n\n\n<p>Remember to replace IP_Address and Port_Number with your server\u2019s actual IP address and SSH port number respectively.<\/p>\n\n\n\n<p>You can check whether you have the proper Debian version installed on your server with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">lsb_release -a<\/pre>\n\n\n\n<p>You should get this output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">No LSB modules are available.\nDistributor ID: Debian\nDescription: Debian GNU\/Linux 11 (bullseye)\nRelease: 11\nCodename: bullseye<\/pre>\n\n\n\n<p>Then, run the following command to make sure that all installed packages on the server are updated to the latest available version<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt update &amp;&amp; apt upgrade<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-2-install-rvm-ruby-version-manager\"><span class=\"ez-toc-section\" id=\"Step-2-Install-RVM-Ruby-Version-Manager\"><\/span>Step 2: Install RVM (Ruby Version Manager)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>One way of installing Ruby on Rails is by using the <code>Ruby Version Manager<\/code>, or shortly <code>RVM<\/code>.<\/p>\n\n\n\n<p>First, install the required dependencies with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt install apt-transport-https ca-certificates gnupg2 curl<\/pre>\n\n\n\n<p>Then, we need to import the GPG key with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ curl -sSL https:\/\/rvm.io\/pkuczynski.asc | gpg2 --import -<\/pre>\n\n\n\n<p>Install the RVM stable version by running the command below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ curl -sSL https:\/\/get.rvm.io | bash -s stable --ruby<\/pre>\n\n\n\n<p>The command will automatically install the packages required, and install the latest stable Ruby version.<\/p>\n\n\n\n<p>To start using RVM you need to run:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">source \/usr\/local\/rvm\/scripts\/rvm<\/pre>\n\n\n\n<p>To list which Ruby versions are available for installation, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rvm list known<\/pre>\n\n\n\n<p>The list should look like the following one:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># MRI Rubies\n[ruby-]1.8.6[-p420]\n[ruby-]1.8.7[-head] # security released on head\n[ruby-]1.9.1[-p431]\n[ruby-]1.9.2[-p330]\n[ruby-]1.9.3[-p551]\n[ruby-]2.0.0[-p648]\n[ruby-]2.1[.10]\n[ruby-]2.2[.10]\n[ruby-]2.3[.8]\n[ruby-]2.4[.10]\n[ruby-]2.5[.8]\n[ruby-]2.6[.6]\n[ruby-]2.7[.2]\n[ruby-]3[.0.0]\nruby-head<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-3-install-ruby\"><span class=\"ez-toc-section\" id=\"Step-3-Install-Ruby\"><\/span>Step 3: Install Ruby<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To install a specific version of Ruby&nbsp; you can use the command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rvm install &lt;version_number&gt;<\/pre>\n\n\n\n<p>Verify the ruby version by running the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ruby -v\n<\/pre>\n\n\n\n<p>The output should be similar to the following:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]<\/pre>\n\n\n\n<p>Run the following RVM command will help you to set the installed version of Ruby as the system default:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rvm use --default 3.0.0<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-4-install-rails\"><span class=\"ez-toc-section\" id=\"Step-4-Install-Rails\"><\/span>Step 4: Install Rails<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Rails is a Ruby gem and different versions of Rails are available for installation too.&nbsp; To install Rails you can use the command below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">gem install rails<\/pre>\n\n\n\n<p>To verify the installation as well as to check what version of Rails you are currently using, you can use the command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rails -v<\/pre>\n\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Rails 6.1.4.1\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-5-install-nodejs-and-yarn\"><span class=\"ez-toc-section\" id=\"Step-5-Install-Nodejs-and-Yarn\"><\/span>Step 5: Install Nodejs and Yarn<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Rails need a Javascript runtime for application development. The simple and easiest way to install Node.js is to install them from the Debian default repository.<\/p>\n\n\n\n<p>By default, the latest version of Node.js is not available in the Debian 11 default repository. So you will need to add the Node.js official repository to your system.<\/p>\n\n\n\n<p>Add the Node.js repository with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">curl -sL https:\/\/deb.nodesource.com\/setup_16.x | bash -<\/pre>\n\n\n\n<p>Then to install the Yarn package manager, run:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">curl -sL https:\/\/dl.yarnpkg.com\/debian\/pubkey.gpg | gpg --dearmor | sudo tee \/usr\/share\/keyrings\/yarnkey.gpg &gt;\/dev\/null\necho \"deb [signed-by=\/usr\/share\/keyrings\/yarnkey.gpg] https:\/\/dl.yarnpkg.com\/debian stable main\" | sudo tee \/etc\/apt\/sources.list.d\/yarn.list<\/pre>\n\n\n\n<p>Update apt and install Node.js and Yarn from the added repositories running the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt update &amp;&amp; apt install nodejs yarn<\/pre>\n\n\n\n<p>Once NodeJS and Yarn have been installed, you can verify the installed version of Node.js with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">node -v<\/pre>\n\n\n\n<p>You should get the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">v16.13.0<\/pre>\n\n\n\n<p>You can verify the yarn version with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yarn -v<\/pre>\n\n\n\n<p>You should get the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">1.22.15<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-6-create-rails-application\"><span class=\"ez-toc-section\" id=\"Step-6-Create-Rails-Application\"><\/span>Step 6: Create Rails Application<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You can now start your first Rails project with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rails new myapp<\/pre>\n\n\n\n<p>Start the Rails application:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd myapp\nrails server -b 0.0.0.0<\/pre>\n\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">=&gt; Booting Puma\n=&gt; Rails 6.1.4.1 application starting in development\n=&gt; Run `bin\/rails server --help` for more startup options\nPuma starting in single mode...\n* Puma version: 5.5.2 (ruby 3.0.0-p0) (\"Zawgyi\")\n* Min threads: 5\n* Max threads: 5\n* Environment: development\n* PID: 9473\n* Listening on http:\/\/0.0.0.0:3000\nUse Ctrl-C to stop\n<\/pre>\n\n\n\n<p>By now, the Rails application should be running on port 3000.<\/p>\n\n\n\n<p>Now open your web browser and type your server IP address with port &#8216;3000&#8217; on the address bar.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">http:\/\/Your_Server_IP_Address:3000\/<\/pre>\n\n\n\n<p>You will get the default index.html page of Ruby on Rails:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1024\" height=\"564\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/setting-up-and-installing-ruby-on-rails-on-debian-11.jpg\" alt=\"setting up and installing ruby on rails on debian 11\" class=\"wp-image-39922\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/setting-up-and-installing-ruby-on-rails-on-debian-11.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/setting-up-and-installing-ruby-on-rails-on-debian-11-300x165.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/setting-up-and-installing-ruby-on-rails-on-debian-11-150x83.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/setting-up-and-installing-ruby-on-rails-on-debian-11-768x423.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>Of course, you don\u2019t have to install Ruby on Rails on Debian 11,\u00a0 if you use one of our <a href=\"https:\/\/www.rosehosting.com\/rails-hosting.html\" target=\"_blank\" rel=\"noreferrer noopener\">Ruby on Rails VPS hosting<\/a> services, in which case you can simply ask our expert <a href=\"https:\/\/www.rosehosting.com\/linux-vps-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">Linux VPS hosting<\/a> admins to install Ruby on Rails on Debian 11 for you. They are available 24\/7 and will take care of your request immediately.<\/p>\n\n\n\n<p>PS. If you liked this post on how to install Ruby on Rails on Debian 11 please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ruby on Rails, or simply Rails, is an open-source web application framework built on top of the Ruby programming language. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Ruby on Rails on Debian 11\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/#more-39788\" aria-label=\"Read more about How to Install Ruby on Rails on Debian 11\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":39816,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,13],"tags":[1962,172,141],"class_list":["post-39788","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-tutorials","tag-debian-11","tag-install","tag-ruby-on-rails","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Ruby on Rails on Debian 11 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Do you want to learn how to install Ruby on Rails on Debian 11? Check out our tutorial to learn more about this topic.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Ruby on Rails on Debian 11 | RoseHosting\" \/>\n<meta property=\"og:description\" content=\"Do you want to learn how to install Ruby on Rails on Debian 11? Check out our tutorial to learn more about this topic.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-29T18:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:31:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-ruby-on-rails-on-debian-11.jpg?v=1637853310\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Install Ruby on Rails on Debian 11 | RoseHosting\" \/>\n<meta name=\"twitter:description\" content=\"Do you want to learn how to install Ruby on Rails on Debian 11? Check out our tutorial to learn more about this topic.\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-ruby-on-rails-on-debian-11\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-ruby-on-rails-on-debian-11\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Ruby on Rails on Debian 11\",\"datePublished\":\"2021-12-29T18:30:00+00:00\",\"dateModified\":\"2022-06-03T08:31:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-ruby-on-rails-on-debian-11\\\/\"},\"wordCount\":679,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-ruby-on-rails-on-debian-11\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/how-to-install-ruby-on-rails-on-debian-11.jpg\",\"keywords\":[\"debian 11\",\"install\",\"ruby on rails\"],\"articleSection\":[\"Debian\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-ruby-on-rails-on-debian-11\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-ruby-on-rails-on-debian-11\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-ruby-on-rails-on-debian-11\\\/\",\"name\":\"How to Install Ruby on Rails on Debian 11 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-ruby-on-rails-on-debian-11\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-ruby-on-rails-on-debian-11\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/how-to-install-ruby-on-rails-on-debian-11.jpg\",\"datePublished\":\"2021-12-29T18:30:00+00:00\",\"dateModified\":\"2022-06-03T08:31:27+00:00\",\"description\":\"Do you want to learn how to install Ruby on Rails on Debian 11? Check out our tutorial to learn more about this topic.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-ruby-on-rails-on-debian-11\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-ruby-on-rails-on-debian-11\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-ruby-on-rails-on-debian-11\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/how-to-install-ruby-on-rails-on-debian-11.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/how-to-install-ruby-on-rails-on-debian-11.jpg\",\"width\":742,\"height\":372,\"caption\":\"How to Install Ruby on Rails on Debian 11\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-ruby-on-rails-on-debian-11\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Ruby on Rails on Debian 11\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install Ruby on Rails on Debian 11 | RoseHosting","description":"Do you want to learn how to install Ruby on Rails on Debian 11? Check out our tutorial to learn more about this topic.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Ruby on Rails on Debian 11 | RoseHosting","og_description":"Do you want to learn how to install Ruby on Rails on Debian 11? Check out our tutorial to learn more about this topic.","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2021-12-29T18:30:00+00:00","article_modified_time":"2022-06-03T08:31:27+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-ruby-on-rails-on-debian-11.jpg?v=1637853310","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_title":"How to Install Ruby on Rails on Debian 11 | RoseHosting","twitter_description":"Do you want to learn how to install Ruby on Rails on Debian 11? Check out our tutorial to learn more about this topic.","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Ruby on Rails on Debian 11","datePublished":"2021-12-29T18:30:00+00:00","dateModified":"2022-06-03T08:31:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/"},"wordCount":679,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-ruby-on-rails-on-debian-11.jpg","keywords":["debian 11","install","ruby on rails"],"articleSection":["Debian","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/","name":"How to Install Ruby on Rails on Debian 11 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-ruby-on-rails-on-debian-11.jpg","datePublished":"2021-12-29T18:30:00+00:00","dateModified":"2022-06-03T08:31:27+00:00","description":"Do you want to learn how to install Ruby on Rails on Debian 11? Check out our tutorial to learn more about this topic.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-ruby-on-rails-on-debian-11.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-ruby-on-rails-on-debian-11.jpg","width":742,"height":372,"caption":"How to Install Ruby on Rails on Debian 11"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-ruby-on-rails-on-debian-11\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Ruby on Rails on Debian 11"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/39788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=39788"}],"version-history":[{"count":9,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/39788\/revisions"}],"predecessor-version":[{"id":39923,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/39788\/revisions\/39923"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/39816"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=39788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=39788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=39788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}