Install

PostgreSQL Migrator publishes releases on GitLab release page with attached artifacts for various distributions.

Use dnf or yum.

sudo dnf install https://gitlab.com/dalibo/pg_migrate/-/releases/permalink/latest/downloads/pg-migrate_linux_amd64.rpm

To enable bash completion, install bash-completion package.

sudo dnf install bash-completion

Download latest DEB package, then install the package with apt or apt-get.

sudo apt install ./pg-migrate_linux_amd64.deb

Download latest APK package, then install the package with apk.

sudo apk add --allow-untrusted pg-migrate_linux_amd64.apk

To enable bash completion, install bash-completion package.

sudo apk add bash-completion

Use pacman.

sudo pacman -U https://gitlab.com/dalibo/pg_migrate/-/releases/permalink/latest/downloads/pg-migrate_linux_amd64.pkg.tar.zst

Download latest binary archive.

Extract the tarball and put pg_migrate binary in your path:

sudo tar -C /usr/local/bin -xvf pg_migrate_linux_amd64.tar.gz pg_migrate

Append completion configuration to your bashrc.

pg_migrate _complete --configuration >> ~/.bashrc

Install completion with the following invocation:

$ pg_migrate _complete --shell=fish --configuration > ~/.config/fish/completions/pg_migrate.fish

Save configuration in a sourced configuration file. Ensure you have write access to first fpath entry.

pg_migrate _complete --shell=zsh --configuration >> "${fpath[1]}/_pg_migrate"

Reload your shell to enable command-line completion:

exec /bin/bash
exec /bin/fish
exec /bin/zsh

Check installation by requesting version:

$ pg_migrate --version
pg_migrate (PostgreSQL Migrator) v1.0.0-beta.9
transqlate v0.7.2
$

For next steps, follow Get Started guide.