

- #INSTALL MONGO SHELL UBUNTU INSTALL#
- #INSTALL MONGO SHELL UBUNTU UPDATE#
- #INSTALL MONGO SHELL UBUNTU SERIES#
$ sudo apt-get install -y mongodb-org=4.0.6 mongodb-org-server=4.0.6 mongodb-org-shell=4.0.6 mongodb-org-mongos=4.0.6 mongodb-org-tools=4.0.6 To install a particular MongoDB release version, include each component package individually and add the version number to the package name, as shown in the following example: - On RPM based Systems. 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 UBUNTU 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 UBUNTU 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.

