Skip to content

Download

Get the pig package manager, add the repositories, install extensions

Three things are downloadable here, in the order you need them: the pig package manager, the two software repositories it configures, and the extension packages themselves.

1 · The package manager

pig is a single static Go binary with no runtime dependencies. Pick whichever channel fits how you manage the machine.

Install script

Downloads the newest pig RPM or DEB from the repository and installs it with rpm or dpkg. Linux x86_64 and aarch64; on macOS use the release tarball below.

Default
curl -fsSL https://repo.pigsty.io/pig | bash
China mirror
curl -fsSL https://repo.pigsty.cc/pig | bash

Package manager

pig lives in the pigsty-infra repository, so once that repository is configured it upgrades with everything else.

Debian / Ubuntu
sudo tee /etc/apt/sources.list.d/pigsty-infra.list > /dev/null <<EOF
deb [trusted=yes] https://repo.pigsty.io/apt/infra generic main
EOF
sudo apt update && sudo apt install -y pig
RHEL / RockyLinux
sudo tee /etc/yum.repos.d/pigsty-infra.repo > /dev/null <<-'EOF'
[pigsty-infra]
name=Pigsty Infra for $basearch
baseurl=https://repo.pigsty.io/yum/infra/$basearch
enabled = 1
gpgcheck = 0
module_hotfixes=1
EOF
sudo yum makecache && sudo yum install -y pig

Release artifacts

RPM, DEB and tarballs for Linux and macOS on both architectures. Verify against the release’s own checksums.txt.

Release artifacts
Linux x86_64 tarball
curl -fsSLO https://github.com/pgsty/pig/releases/download/v1.8.0/pig-v1.8.0.linux-amd64.tar.gz
tar -xf pig-v1.8.0.linux-amd64.tar.gz && sudo install -m 0755 pig /usr/bin/pig
macOS arm64 tarball
curl -fsSLO https://github.com/pgsty/pig/releases/download/v1.8.0/pig-v1.8.0.darwin-arm64.tar.gz
tar -xf pig-v1.8.0.darwin-arm64.tar.gz && sudo install -m 0755 pig /usr/local/bin/pig

2 · The repositories

pig writes these for you (pig repo add all -u), but they are ordinary APT and DNF repositories and can be added by hand.

576 packaged extensions, one repository per distribution codename

OS-generic infrastructure packages, including pig itself

The upstream PostgreSQL kernel repository these are built against

Signing keys, fingerprints, and how to verify a package

Full setup instructions, including the mainland-China mirror, are on theRepository page.

3 · The extension packages

Every extension page carries its own download table: one row per platform and PostgreSQL major, with the exact filename, size, and a direct link into the repository.

All 576 packaged extensions, with per-platform download tables

What is available on each of the 16 Linux targets

The same grid as raw data, alongside a JSON export

Verifying what you downloaded

Repository packages are GPG-signed; apt and dnf check the signature for you once the key is installed. Release artifacts on GitHub are covered by the checksums.txt published with each tag:

curl -fsSLO https://github.com/pgsty/pig/releases/latest/download/checksums.txt
sha256sum -c checksums.txt --ignore-missing

Source

Nothing here is built from anything you cannot read:

Repository What it builds
pgsty/pig The package manager itself
pgsty/rpm Every RPM in the PGSQL repository
pgsty/deb Every DEB in the PGSQL repository
pgsty/infra-pkg The OS-generic infrastructure packages