
- #Ubuntu 20.04 install mongodb how to#
- #Ubuntu 20.04 install mongodb install#
- #Ubuntu 20.04 install mongodb update#
- #Ubuntu 20.04 install mongodb download#
In case, you know then skip the following command. If you do not know your Ubuntu built-in init system, copy-paste and enter the following command in your terminal. Step 5: Now,the final step, Start the MongoDB
#Ubuntu 20.04 install mongodb install#
To install a specific release, specify each component package individually along with the version number (Refer below Command) sudo apt-get install -y mongodb-org=4.4.6 mongodb-org-server=4.4.6 mongodb-org-shell=4.4.6 mongodb-org-mongos=4.4.6 mongodb-org-tools=4.4.6įinally, MongoDB is installed on your system but before using it we need to start the MongoDB service, for that follow the next step. When the above command finishes, the following packages will be installed on your system: It will take some time to install, so relax for sometime. Install the MongoDB Package by running the following command sudo apt-get install -y mongodb-org
#Ubuntu 20.04 install mongodb update#
sudo apt-get update Step 4: Install the MongoDB package Now, run the following command to synchronizes the package index files (in the local package database) from their sources. However, if you want to install different version, replace 4.4 with your preferred version.

Step 2: Create the list file for MongoDB according to the Ubuntu version sudo apt-get install gnupg wget -qO - | sudo apt-key add -Īfter you get “Ok” message in your terminal, move to the next step. Gnupg is not installed: If you get an error similar to “ gnupg is not installed”, Install the gnupg first and again run the command to import GPG Key. It retrieves files using HTTP, HTTPS, and FTP protocols.
#Ubuntu 20.04 install mongodb download#
Wget is a free GNU command-line utility tool used to download files from the internet. If you encounter an error like “wget: command not found”, Install it using the following command: sudo apt-get install wget Wget: command not found: We need wget package for this to work. If you want to install different version, replace 4.4 with your preferred version. The following command will import the GPG Key for the latest stable version of MongoDB. Open the terminal and copy-paste the following command and press enter. Step 1: Import the MongoDB public GPG Key Also, it supports the ARM64 and s390x architectures on select platforms. MongoDB 4.4 Community Edition supports the following 64-bit Ubuntu LTS (long-term support) releases on x86_64 architecture:Īs of now, it only supports the 64-bit versions of these platforms. Similarly, If you encounter an error saying “ gnupg is not installed“, Follow thisĮcho "deb focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt//mongodb-org-4.4.list


#Ubuntu 20.04 install mongodb how to#
In this tutorial, we will get to know how to install MongoDB on Ubuntu 20.04 from its official repositories.
