{"id":51021,"date":"2025-11-03T12:30:00","date_gmt":"2025-11-03T18:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=51021"},"modified":"2025-11-07T04:54:18","modified_gmt":"2025-11-07T10:54:18","slug":"how-to-install-mongodb-on-debian-13","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mongodb-on-debian-13\/","title":{"rendered":"How to Install MongoDB on Debian 13"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/10\/how-to-install-mongodb-in-debian-13.webp\" alt=\"How to install MongoDB in Debian 13\" class=\"wp-image-51106\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/10\/how-to-install-mongodb-in-debian-13.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/10\/how-to-install-mongodb-in-debian-13-300x169.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/10\/how-to-install-mongodb-in-debian-13-150x84.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/10\/how-to-install-mongodb-in-debian-13-768x432.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>MongoDB is a document-based database management system that uses JSON (JavaScript Object Notation) to store its data. Its primary function is to provide flexible, fast, and scalable data storage. This system is often used for applications that require high performance and good scalability. MongoDB is open source software, meaning anyone can download, use, and modify it. This open source status makes it a favorable choice due to the community&#8217;s support and continuous updates to the system. In this article, we will show you how to install MongoDB on Debian 13.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-conventions\">Conventions<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># \u2013 given commands should be executed with root privileges either directly as a root user or by use of sudo command\n$ \u2013 given commands should be executed as a regular user<\/code><\/pre>\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-69f430cc00149\" 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-69f430cc00149\"  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-mongodb-on-debian-13\/#Step-1-Install-Dependencies\" >Step 1. Install Dependencies<\/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-mongodb-on-debian-13\/#Step-2-Install-Docker\" >Step 2. Install Docker<\/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-mongodb-on-debian-13\/#Step-3-Add-a-System-User\" >Step 3. Add a System User<\/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-mongodb-on-debian-13\/#Step-4-Install-MongoDB\" >Step 4. Install MongoDB<\/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-mongodb-on-debian-13\/#Step-5-Access-Mongodb\" >Step 5. Access Mongodb<\/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-mongodb-on-debian-13\/#Congratulations\" >Congratulations<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-step-1-install-dependencies\"><span class=\"ez-toc-section\" id=\"Step-1-Install-Dependencies\"><\/span>Step 1. Install Dependencies<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Debian 13 was released not long ago, but Debian 13 (Trixie) is still not listed on the MongoDB repository. Due to this, we can not install MongoDB using their official repository; instead, we can install MongoDB using Docker. We need to install some dependencies to proceed with installing MongoDB in our Debian 13 system. Let&#8217;s install them by running the command below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># apt install ca-certificates curl gnupg -y<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-2-install-docker\"><span class=\"ez-toc-section\" id=\"Step-2-Install-Docker\"><\/span>Step 2. Install Docker<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this step, we will install Docker from their repository. Before installing it, we need to add and configure the repository first to help us install MongoDB later.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># install -m 0755 -d \/etc\/apt\/keyrings\n# curl -fsSL https:\/\/download.docker.com\/linux\/debian\/gpg -o \/etc\/apt\/keyrings\/docker.asc\n# chmod a+r \/etc\/apt\/keyrings\/docker.asc<\/code><\/pre>\n\n\n\n<p>It&#8217;s time to add the repository to apt sources:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#echo \\\n  \"deb &#91;arch=$(dpkg --print-architecture) signed-by=\/etc\/apt\/keyrings\/docker.asc] https:\/\/download.docker.com\/linux\/debian \\\n  $(. \/etc\/os-release &amp;&amp; echo \"$VERSION_CODENAME\") stable\" | \\\n  tee \/etc\/apt\/sources.list.d\/docker.list &gt; \/dev\/null\n\n# apt update<\/code><\/pre>\n\n\n\n<p>We should be able to install Docker packages now. We will install the latest version.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin<\/code><\/pre>\n\n\n\n<p>After the packages are installed, we can check the version of Docker installed with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># docker --version<\/code><\/pre>\n\n\n\n<p>You will get the following output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Docker version 28.3.3, build 980b856<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-3-add-a-system-user\"><span class=\"ez-toc-section\" id=\"Step-3-Add-a-System-User\"><\/span>Step 3. Add a System User<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this article, we will use a specific system user to run Docker. Let&#8217;s create a new user called &#8216;master&#8217;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># useradd -G docker,sudo -s \/bin\/bash -m -d \/opt\/master master<\/code><\/pre>\n\n\n\n<p>Now, let&#8217;s give the user a password<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># passwd master<\/code><\/pre>\n\n\n\n<p>This user will be used to execute the commands in the next steps.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-4-install-mongodb\"><span class=\"ez-toc-section\" id=\"Step-4-Install-MongoDB\"><\/span>Step 4. Install MongoDB<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Setting up MongoDB for a project can be a breeze with Docker Compose. This guide will walk you through the process, from creating a docker-compose.yml file and running MongoDB in a container. Let&#8217;s switch to the new system user shell now.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># su - master<\/code><\/pre>\n\n\n\n<p>Creating a MongoDB container with Docker Compose is simple with a docker-compose.yml file. Below is a basic example that lets you control the MongoDB version, set up persistent data storage, and add custom environment variables. Let&#8217;s create the docker-compose.yaml file for Debian 13 installation.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ nano docker-compose.yaml<\/code><\/pre>\n\n\n\n<p>Paste the following into the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>services:\n  mongo:\n    image: mongo:8.0\n    container_name: mongodb\n    restart: always\n    ports:\n      - \"27017:27017\"\n    environment:\n      MONGO_INITDB_ROOT_USERNAME: root\n      MONGO_INITDB_ROOT_PASSWORD: m0d1fyth15\n    volumes:\n      - mongo-data:\/data\/db\nvolumes:\n  mongo-data:\n    driver: local<\/code><\/pre>\n\n\n\n<p>Make sure to replace &#8216;m0d1fyth15&#8217; with a stronger password. Save the file, then exit from the editor.<\/p>\n\n\n\n<p>Let&#8217;s break down the key parts of the Docker Compose configuration:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-service-and-image\">Service and Image<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>image: mongo:8.0: This line tells Docker to use the official MongoDB image, version 8.0, from Docker Hub.\ncontainer_name: mongodb: We're giving the container a specific, easy-to-remember name: mongodb.<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-restart-policy\">Restart Policy<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>restart: always: This is a great feature. It ensures that if the MongoDB container ever stops for any reason, Docker will automatically restart it.<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-ports\">Ports<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>ports: \"27017:27017\": This maps port 27017 on your computer to port 27017 inside the container. It's how your applications connect to the database.<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-environment-variables\">Environment Variables<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>environment: This section is used to set up key configuration details.\nMONGO_INITDB_ROOT_USERNAME: Sets the username for the database administrator.\nMONGO_INITDB_ROOT_PASSWORD: Sets the password for the database administrator.<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-volumes\">Volumes<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>volumes: This is crucial for persistent data storage.\nmongo-data: This volume saves the actual database data. If you delete and recreate the container, your data will still be safe.<\/code><\/pre>\n\n\n\n<p>Now, let&#8217;s execute the command below to complete the installation.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ docker compose up -d<\/code><\/pre>\n\n\n\n<p>The command above will print an output like this on your screen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>master@debian13:\/opt\/master\/mongodb$ docker compose up -d\n&#91;+] Running 9\/9\n \u2714 mongo Pulled                                                                                                                                                  53.4s \n   \u2714 b71466b94f26 Pull complete                                                                                                                                   7.4s \n   \u2714 e701e7c9324a Pull complete                                                                                                                                   7.4s \n   \u2714 f1102db351d8 Pull complete                                                                                                                                   7.7s \n   \u2714 d713d16a8043 Pull complete                                                                                                                                   7.8s \n   \u2714 cb52df844465 Pull complete                                                                                                                                   7.9s \n   \u2714 578438e6cda5 Pull complete                                                                                                                                   7.9s \n   \u2714 0a07b2b41243 Pull complete                                                                                                                                  48.2s \n   \u2714 91469349d2c2 Pull complete                                                                                                                                  48.2s \n&#91;+] Running 4\/4\n \u2714 Network mongodb_default        Created                                                                                                                         0.1s \n \u2714 Volume \"mongodb_mongo-data\"    Created                                                                                                                         0.0s \n \u2714 Volume \"mongodb_mongo-config\"  Created                                                                                                                         0.0s \n \u2714 Container mongodb              Started          <\/code><\/pre>\n\n\n\n<p>That&#8217;s it! MongoDB has been running on port 27017.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-5-access-mongodb\"><span class=\"ez-toc-section\" id=\"Step-5-Access-Mongodb\"><\/span>Step 5. Access Mongodb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To manage the databases and everything else in MongoDB, we can run the command below to log in to the MongoDB shell. Make sure to replace m0d1fyth15 with your own password that matches the one you created in docker-compose.yaml file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ docker exec -it mongodb mongosh \"mongodb:\/\/root:m0d1fyth15@localhost:27017\"<\/code><\/pre>\n\n\n\n<p>Once logged in, we can create a new database.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>use rosehostingdb;<\/code><\/pre>\n\n\n\n<p>The command above will create a new database called &#8216;rosehostingdb&#8217;. Now, we can create a collection and continue setting up MongoDB on Debian 13.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>db.createCollection(\"blogposts\")<\/code><\/pre>\n\n\n\n<p>Next, let&#8217;s create a user called &#8216;master&#8217; with read and write roles on the rosehostingdb database.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>db.createUser(\n  {\n    user: \"master\",\n    pwd: \"m0d1fyth15\",\n    roles: &#91; { role: \"readWrite\", db: \"rosehostingdb\" } ]\n  }\n)<\/code><\/pre>\n\n\n\n<p>You can list the users created using the db.getUsers() method.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>db.getUsers();<\/code><\/pre>\n\n\n\n<p>You will see an output similar to this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rosehostingdb&gt; db.getUsers();\n{\n  users: &#91;\n    {\n      _id: 'rosehostingdb.master',\n      userId: UUID('31df4200-ab5c-48b9-9f37-ead9fc0db806'),\n      user: 'master',\n      db: 'rosehostingdb',\n      roles: &#91; { role: 'readWrite', db: 'rosehostingdb' } ],\n      mechanisms: &#91; 'SCRAM-SHA-1', 'SCRAM-SHA-256' ]\n    }\n  ],\n  ok: 1\n}<\/code><\/pre>\n\n\n\n<p>Alternatively, you can also run the command below to show the users connected to the database:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show users<\/code><\/pre>\n\n\n\n<p>Type &#8216;exit&#8217; to exit from the MongoDB shell.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-congratulations\"><span class=\"ez-toc-section\" id=\"Congratulations\"><\/span>Congratulations<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>That&#8217;s it! You have successfully installed MongoDB on Debian 13.<\/p>\n\n\n\n<p>If you are one of our web hosting customers and use our <a href=\"https:\/\/www.rosehosting.com\/debian-vps-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">managed Debian Hosting<\/a>, you don\u2019t have to follow this tutorial and install MongoDB on Debian 13 yourself; our Linux admins will set up and configure a MongoDB VPS for you. They are available 24\u00d77 and will take care of your request immediately, and all you need to do is to submit a ticket. Installing MongoDB is not just about the installation; we can help you optimize and harden your MongoDB installation if you have an active service with us.<\/p>\n\n\n\n<p>PS. If you liked this post, 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>MongoDB is a document-based database management system that uses JSON (JavaScript Object Notation) to store its data. Its primary function &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install MongoDB on Debian 13\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mongodb-on-debian-13\/#more-51021\" aria-label=\"Read more about How to Install MongoDB on Debian 13\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":51106,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1702,1700],"tags":[41,2265,1603,605],"class_list":["post-51021","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-databases","category-debian","tag-database","tag-debian-13","tag-how-to-install","tag-mongodb","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.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install MongoDB on Debian 13 | RoseHosting<\/title>\n<meta name=\"description\" content=\"This guide will teach you how to install MongoDB on Debian 13, overcoming the lack of official repository support.\" \/>\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-mongodb-on-debian-13\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install MongoDB on Debian 13\" \/>\n<meta property=\"og:description\" content=\"How to Install MongoDB on Debian 13 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mongodb-on-debian-13\/\" \/>\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=\"2025-11-03T18:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-07T10:54:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/10\/how-to-install-mongodb-in-debian-13.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\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=\"4 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-mongodb-on-debian-13\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mongodb-on-debian-13\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install MongoDB on Debian 13\",\"datePublished\":\"2025-11-03T18:30:00+00:00\",\"dateModified\":\"2025-11-07T10:54:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mongodb-on-debian-13\\\/\"},\"wordCount\":724,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mongodb-on-debian-13\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/how-to-install-mongodb-in-debian-13.webp\",\"keywords\":[\"database\",\"debian 13\",\"how to install\",\"mongodb\"],\"articleSection\":[\"Databases\",\"Debian\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mongodb-on-debian-13\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mongodb-on-debian-13\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mongodb-on-debian-13\\\/\",\"name\":\"How to Install MongoDB on Debian 13 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mongodb-on-debian-13\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mongodb-on-debian-13\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/how-to-install-mongodb-in-debian-13.webp\",\"datePublished\":\"2025-11-03T18:30:00+00:00\",\"dateModified\":\"2025-11-07T10:54:18+00:00\",\"description\":\"This guide will teach you how to install MongoDB on Debian 13, overcoming the lack of official repository support.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mongodb-on-debian-13\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mongodb-on-debian-13\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mongodb-on-debian-13\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/how-to-install-mongodb-in-debian-13.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/how-to-install-mongodb-in-debian-13.webp\",\"width\":1024,\"height\":576,\"caption\":\"How to install MongoDB in Debian 13\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mongodb-on-debian-13\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install MongoDB on Debian 13\"}]},{\"@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 MongoDB on Debian 13 | RoseHosting","description":"This guide will teach you how to install MongoDB on Debian 13, overcoming the lack of official repository support.","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-mongodb-on-debian-13\/","og_locale":"en_US","og_type":"article","og_title":"How to Install MongoDB on Debian 13","og_description":"How to Install MongoDB on Debian 13 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mongodb-on-debian-13\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2025-11-03T18:30:00+00:00","article_modified_time":"2025-11-07T10:54:18+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/10\/how-to-install-mongodb-in-debian-13.webp","type":"image\/webp"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mongodb-on-debian-13\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mongodb-on-debian-13\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install MongoDB on Debian 13","datePublished":"2025-11-03T18:30:00+00:00","dateModified":"2025-11-07T10:54:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mongodb-on-debian-13\/"},"wordCount":724,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mongodb-on-debian-13\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/10\/how-to-install-mongodb-in-debian-13.webp","keywords":["database","debian 13","how to install","mongodb"],"articleSection":["Databases","Debian"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-mongodb-on-debian-13\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mongodb-on-debian-13\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mongodb-on-debian-13\/","name":"How to Install MongoDB on Debian 13 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mongodb-on-debian-13\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mongodb-on-debian-13\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/10\/how-to-install-mongodb-in-debian-13.webp","datePublished":"2025-11-03T18:30:00+00:00","dateModified":"2025-11-07T10:54:18+00:00","description":"This guide will teach you how to install MongoDB on Debian 13, overcoming the lack of official repository support.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mongodb-on-debian-13\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-mongodb-on-debian-13\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mongodb-on-debian-13\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/10\/how-to-install-mongodb-in-debian-13.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/10\/how-to-install-mongodb-in-debian-13.webp","width":1024,"height":576,"caption":"How to install MongoDB in Debian 13"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mongodb-on-debian-13\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install MongoDB on Debian 13"}]},{"@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\/51021","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=51021"}],"version-history":[{"count":7,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/51021\/revisions"}],"predecessor-version":[{"id":51274,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/51021\/revisions\/51274"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/51106"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=51021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=51021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=51021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}