

Once the repo installed, run the following command to install MongoDB 4.0. Step 2: Installing MongoDB Community Edition Packages $ echo "deb jessie/mongodb-org/4.0 main" | sudo tee /etc/apt//mongodb-org-4.0.list $ echo "deb stretch/mongodb-org/4.0 main" | sudo tee /etc/apt//mongodb-org-4.0.list
#INSTALL MONGO SHELL 3.0 SERIES#
MongoDB repository only provides packages for 64-bit Debian 9 Stretch and Debian 8 Jessie, to install MongoDB on Debian, you need to run the following series of commands: On Debian 9 $ sudo apt-key adv -keyserver hkp://:80 -recv 9DA31620334BD75D9DCB49F368818C72E52529D4 On Ubuntu 14.04 $ echo "deb trusty/mongodb-org/4.0 multiverse" | sudo tee /etc/apt//mongodb-org-4.0.list On Ubuntu 16.04 $ echo "deb xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt//mongodb-org-4.0.list On Ubuntu 18.04 $ echo "deb bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt//mongodb-org-4.0.list
#INSTALL MONGO SHELL 3.0 UPDATE#
Next, create a MongoDB repository file and update the repository as shown. To install MongoDB Community Edition on Ubuntu, you need to first import the public key used by the package management system. MongoDB repository only provides packages for 18.04 LTS (bionic), 16.04 LTS (xenial) and 14.04 LTS ( Trusty Tahr) long-term supported 64bit Ubuntu releases. On Red Hat, CentOS and FedoraĬreate a file /etc//mongodb-org-4.0.repo to install MongoDB directly, using yum command.

Step 1: Adding MongoDB Repositoryįirst, we need to add MongoDB Official Repository to install MongoDB Community Edition on 64-bit platforms. In this article, we will walk you through the process of installing MongoDB 4.0 Community Edition on RHEL, CentOS, Fedora, Ubuntu and Debian servers with the help of official MongoDB repository using. mongodb-org-tools – Contains the MongoDB tools: mongo, mongodump, mongorestore, mongoexport, mongoimport, mongostat, mongotop, bsondump, mongofiles, mongooplog and mongoperf.mongodb-org-shell – Contains the mongo shell.mongodb-org-mongos – Contains the mongos daemon.mongodb-org-server – Contains the mongod daemon and releated configuration and init scripts.mongodb-org – A metapackage that will install following 4 component packages automatically.MongoDB Packagesįollowing are the supported MongoDB packages, comes with own repository and contains: It stores data in JSON-like documents with dynamic schema’s for better performance. MongoDB is an open source no-schema and high-performance document-oriented NoSQL database (NoSQL means it doesn’t provide any tables, rows, etc.) system much like Apache CouchDB.
