How to Install MongoDB Repository Debian Based Systems

December 13th, 2017 by thelinuxevangelist

Install MongoDB Repository Debian

You Are Welcome! This Tip Shows You How to Install MongoDB Repository on Debian GNU/Linux Based OSes.

And MongoDB (from “humongous”) is an Open-Source Document Database written in C++, and the leading NoSQL database.

Finally these instructions are Valid also for:

  • Kali Linux
  • LMDE Linux
  • Deepin Linux
  • Parsix Linux
  • antiX Linux
  • MX Linux
  • SparkyLinux
  • MakuluLinux
  • Elive Linux
How to Install MongoDB Repository Debian Based OSes - Featured
  1. First Import GPG Key

    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
  2. Then Setup MongoDB Repo

    • For Debian 9-Stretch/10-Buster and Testing/Sid-Unstable

      echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/3.6 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
    • Instead for Debian 8 Stretch

      echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
    • Finally for Debian 7 Wheezy

      echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.6 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
  3. And to Reload Apt Sources

    sudo apt-get update

Tags: , , , , , , ,