Skip to main content
Supported Operating Systems
Windows is not supported. Please use WSL (Windows Subsystem for Linux) or a Linux VM.
  • Linux (AMD64, ARM64)
  • macOS (Apple Silicon, Intel)

macOS

Debian/Ubuntu (DEB)

Install pgschema using the DEB package on Debian, Ubuntu, or other Debian-based distributions.
Replace v1.0.0 and 1.0.0 with the latest release version.

RedHat/Fedora (RPM)

Install pgschema using the RPM package on RedHat, Fedora, CentOS, or other RPM-based distributions.
Replace v1.0.0 and 1.0.0 with the latest release version.

Pre-built Binaries (Linux)

For Linux systems without package manager support, download pre-built binaries from the GitHub releases page.
Replace v1.0.0 and 1.0.0 with the latest release version.

Verify Downloads

Each release includes a pgschema-<version>-checksums.txt file with the SHA-256 checksum of every binary, DEB, and RPM asset. Download it next to the asset and verify before installing.
Replace v1.0.0 and 1.0.0 with the latest release version. Keep the original asset file name when downloading so it matches the checksums file.
--ignore-missing skips assets you did not download. A successful check prints OK for each downloaded asset; a mismatch prints FAILED and exits non-zero.

Docker

Run pgschema using Docker without installing it locally:
Important Docker Usage Notes:
  • Use --network host when connecting to databases on localhost/127.0.0.1
  • Mount volumes with -v "$(pwd):/workspace" to access local schema files
  • Files inside the container should be referenced with /workspace/ prefix

Go Install

If you have Go 1.24.0 or later installed, you can install pgschema directly:
This will install the latest version of pgschema to your $GOPATH/bin directory. After installation, verify that pgschema is working correctly:

Build from Source

Clone the repository and build from source:
Building from source requires Go 1.24.0 or later.