Lesson 1: Get Started with DBA Tools / Learn
Code Summary: Get Started with DBA Tools
Review the following code, which demonstrates how to install MongoDB Database Tools.
Install MongoDB Database Tools
Follow these steps to install MongoDB 6.0 Community Edition on LTS (long-term support) releases of Ubuntu Linux, using the apt
package manager.
- In the terminal, use the following command to import the public key used by the package management system:
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
- Create a list file for MongoDB:
echo “deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse” | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
- Reload the local package database:
sudo apt-get update
- Install the latest stable version of MongoDB Community Edition:
sudo apt-get install -y mongodb-org