In this blog post, I’m going to show you how to install the community version of MongoDB on a Debian 10 operating system such as Parrot.
1. Check your version of Parrot
Run the following command in your terminal to check the version of Parrot you’re using.
As you can see, I’m running version 4.10 which is a Debian 10 derivative.
2. Import the public key used by the package management system
From a terminal, issue the following command to import the MongoDB public GPG Key
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
3. Create a mongodb-org list file for MongoDB
Create the list file using the following command:
echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
4. Reload local package database.
Issue the following command to reload the local package database:
sudo apt-get update
5. Install the MongoDB packages
To install the latest stable version of MongoDB, run this command:
sudo apt-get install -y mongodb-org
6. Start MongoDB
Run this command to start mongod:
sudo service mongod start
7. Verify that MongoDB has started successfully
Verify that the mongod process has started successfully by running:
sudo service mongod status