$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

How to Add MongoDB Repository on Ubuntu-Based Systems

August 28, 2021 | By the+gnu+linux+evangelist.

GNU/Linux Ubuntu Adding MongoDB Repo Guide

Hi! This Tip shows you How to Enable MongoDB Community Edition Repository on Ubuntu GNU/Linux 64-bit Based OSes.

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

Finally, this Setup is valid for all the Ubuntu-based Distros like:

  • Linux Mint
  • Zorin OS
  • Lubuntu
  • Elementary OS
  • Kde Neon
  • Pop_OS!
  • Xubuntu
  • Linux Lite
  • Bodhi
  • Puppy
  • Kubuntu
  • LXLE
  • Trisquel
  • Voyager Ubuntu
  • feren OS
  • Peppermint
  • Linux Ultimate Edition
How to Install MongoDB Repository Ubuntu-based - Featured
  1. 1. Terminal Getting-Started Guide

    How to QuickStart with Command Line on Ubuntu GNU/Linux:

    Console Ubuntu QuickStart Guide
  2. 2. Importing GPG Key

    First, Import GPG Key
    With:

    wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
    (For the Newer Release in case of apt-key Issue see: Gpg.d Keyring Setup Guide.)
  3. 3. Setting up Repo

    Then Setup MongoDB Repo
    With the below instructions:

    • Currently for Ubuntu 20.04+ and Mint 20+
      Use this same Setup also for the Intermediary Ubuntu releases 20.10/21.04/21.10!
      echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
    • For Ubuntu 18.04 and Mint 19.x
      Use this same Setup also for the Intermediary Ubuntu releases 18.10/19.04/19.10!
      echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
    • For Ubuntu 16.04 and Mint 18.x
      echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
    • Instead, for Ubuntu 14.04 to 15.10 and Mint 17.x
      echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
    • Finally, for Ubuntu 12.04 to 13.10 and Mint 13-16
      echo "deb https://repo.mongodb.org/apt/ubuntu precise/mongodb-org/3.1 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.1.list
  4. 4. Refreshing Apt Repos

    And to Reload Apt Sources
    Run:

    sudo apt-get update
  5. 5. Installing MongoDB

    How to Install MongoDB in Ubuntu

    MongoDB Ubuntu QuickStart Guide