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 with the latest release version.

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.