Windows is not supported. Please use WSL (Windows Subsystem for Linux) or a Linux VM.
- Linux (AMD64, ARM64)
- macOS (Apple Silicon, Intel)
macOS
- Homebrew (Recommended)
- Pre-built Binary
Install pgschema using Homebrew:To update to the latest version:
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.- AMD64
- ARM64
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.- AMD64
- ARM64
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.- Linux AMD64
- Linux ARM64
Verify Downloads
Each release includes apgschema-<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 hostwhen 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:$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.

