(MongoDB Community Edition)

Add the MongoDB apt repository and install the MongoDB packages

Replace the Version (4.4) with the one you want to install.

apt-get install gnupg curl
curl -fsSL | gpg -o /usr/share/keyrings/mongodb-server-4.4.gpg --dearmor
echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg ] bullseye/mongodb-org/4.4 main" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list
apt-get update
apt-get install -y mongodb-org


Revision #2
Created 17 November 2023 11:24:28 by magenbrot
Updated 17 November 2023 11:27:54 by magenbrot