Install the mongo shell on Ubuntu 18.04

Import the public key that will be used by the package management system.

sudo apt-key adv --keyserver hkp:// --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
Create the list file /etc/apt/sources.list.d/mongodb-org-3.6.list for MongoDB using the command appropriate for your version of Ubuntu.

Ubuntu 18.04

echo "deb [ arch=amd64,arm64 ] xenial/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
Reload the local package database using the following command:

sudo apt-get update
Install the MongoDB shell.

sudo apt-get install -y mongodb-org-shell


Popular posts from this blog

How to delete / clear queue of PowerMTA