Choose Docker for the fastest local setup, or Linux packages for PostgreSQL extension installs. The generated package commands configure the PostgreSQL dependency repositories and install the DocumentDB extension package.
Starts DocumentDB locally on port 10260 for quick evaluation and development.
| Format | Distributions | Architectures | PostgreSQL versions | Package naming |
|---|---|---|---|---|
| APT | Ubuntu 22.04/24.04, Debian 11/12/13 | amd64, arm64 | 16, 17, 18 (Debian 11: 16, 17) | postgresql-<pg>-documentdb |
| RPM | RHEL-compatible 8/9 (tested on Rocky Linux) | x86_64, aarch64 | 16, 17, 18 | postgresql<pg>-documentdb |
Use Package Finder above to generate the exact command for your selected target instead of scanning all combinations manually.
Debian 13 packages are available in the deb13 APT component and remain downloadable as direct .deb assets from GitHub Releases.
Use the commands below to discover available versions before pinning. Replace <VERSION> with the version string shown by the list command (e.g. 0.111-0 for APT, 0.111.0-1.el9 for RPM).
APT — list then pin
apt-cache madison postgresql-16-documentdbsudo apt install postgresql-16-documentdb=<VERSION>RPM — list then pin
dnf --showduplicates list postgresql16-documentdbsudo dnf install postgresql16-documentdb-<VERSION>See all releases and release notes on GitHub Releases.
Individual .deb and .rpm files are attached to each release on GitHub. Recent release examples:
Swap the distribution, PostgreSQL version, architecture, and version string to match the exact asset you need.
Browse releases on GitHub →sudo apt update && apt search documentdb && apt-cache policy postgresql-16-documentdbsudo dnf clean all && dnf search documentdb && rpm -qi postgresql16-documentdbDocker starts a gateway-backed local endpoint on port 10260. Linux packages install the PostgreSQL extension; the Linux package guide adds the extra source-gateway steps needed when you want a host install that still exposes a MongoDB-compatible endpoint.
See the full setup flow and choose the guide that fits your environment.
Install PyMongo and connect to your local DocumentDB instance.
Use the Node.js driver and run your first queries locally.
Connect through the VS Code extension for a guided local workflow.