# repo.mongodb.org (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.

```bash
apt-get install gnupg curl
echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0 main" | tee /etc/apt/sources.list.d/mongodb-org-8.0.list
apt-get update
apt-get install -y mongodb-org
```

from [https://www.mongodb.com/docs/v8.0/tutorial/install-mongodb-on-debian/](https://www.mongodb.com/docs/v8.0/tutorial/install-mongodb-on-debian/)