RHEL · Rocky · Alma · openEuler
RELEASE MATRIX
Download & Install pig
One self-contained static binary, no runtime dependencies. Use the one-line installer, your system package manager, or grab the RPM, DEB, or tarball for your architecture directly.
FASTEST PATH
One Line
The installer detects your distro and architecture, fetches the matching RPM or DEB, and hands it to rpm or dpkg.
RELEASE ARTIFACTS
RPM · DEB · tar.gz
Download the native packages and binary archives for v1.8.1 directly, with SHA-256 checksums — for offline delivery and mirror sync.
01 / INSTALL
Install pig
Five paths to the same binary: script, system repository, native package, tarball, source. Pick the one that matches your delivery boundary.
Install pig with one command
The script pulls the RPM or DEB that matches the running system from the Pigsty software repository, then hands it to rpm / dpkg. It installs pig itself and nothing else — no PostgreSQL, no repository changes.
curl -fsSL https://repo.pigsty.io/pig | bash
pig --version
curl -fsSL https://repo.pigsty.cc/pig | bash
pig --version
curl -fsSL https://repo.pigsty.io/pig | bash -s 1.8.1
checksums.txt. If piping a remote script to a shell is outside your policy, download and read it first.WHERE IT LANDS
/usr/bin/pig
The extension catalog ships inside the binary; pig ext reload refreshes it on its own.
pig ext listLet the system package manager own pig
pig lives in the pigsty-infra repository. Once the repository is wired in, installs and upgrades go through apt / dnf like any other system package.
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
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 dnf makecache
sudo dnf install -y pig
gpgcheck=0 / trusted=yes, matching PIG's compatibility-oriented defaults. In a managed environment, import and pin the signing key, enable signature verification, and review package provenance first.Direct RPM and DEB links for v1.8.1
Every release ships native packages for both x86_64 and aarch64. Download the current build directly, or use GitHub Releases for older versions.
Debian · Ubuntu
Linux · installer-free
# EL / RHEL / Rocky / Alma
curl -fLO https://github.com/pgsty/pig/releases/download/v1.8.1/pig-1.8.1-1.x86_64.rpm
sudo rpm -ivh pig-1.8.1-1.x86_64.rpm
# Debian / Ubuntu
curl -fLO https://github.com/pgsty/pig/releases/download/v1.8.1/pig_1.8.1-1_amd64.deb
sudo dpkg -i pig_1.8.1-1_amd64.deb
Unpack-and-run static binaries
For CI, container images, offline delivery, and hosts where you would rather not involve a package manager. macOS has no native package — use these archives.
Linux
glibc · statically linkedmacOS
Intel · Apple Siliconcurl -fLO https://github.com/pgsty/pig/releases/download/v1.8.1/pig-v1.8.1.linux-amd64.tar.gz
tar -xzf pig-v1.8.1.linux-amd64.tar.gz
sudo install -m 0755 pig /usr/bin/pig
pig --version
curl -fsSL https://github.com/pgsty/pig/releases/download/v1.8.1/checksums.txt | grep pig-v1.8.1.linux-amd64.tar.gz | sha256sum -c -Build pig yourself
pig is written in Go with no cgo dependency; the build is go mod download plus one make build. Use it for auditing, development, or targeting a platform outside the release matrix.
git clone https://github.com/pgsty/pig.git
cd pig
go mod download
make build
./pig --version
PREREQUISITES
Go toolchain
The published RPM / DEB packages come from the project's GitHub Actions + GoReleaser pipeline; a local make build produces the executable for the current platform only.
make build02 / TARGET MATRIX
Where pig itself runs
This is the support matrix for the pig binary itself. What it can install — kernels and extension packages — is target-specific; the catalog carries the per-target availability.
Enterprise Linux 8 / 9 / 10
RHEL, Rocky, AlmaLinux, openEuler, and other EL-compatible distributions, on x86_64 and aarch64.
pig-1.8.1-1.x86_64.rpmDebian 12 / 13
Bookworm and Trixie, on amd64 and arm64.
pig_1.8.1-1_amd64.debUbuntu 22 / 24 / 26
Jammy, Noble, and Resolute, on amd64 and arm64.
pig_1.8.1-1_arm64.debmacOS
Intel and Apple Silicon — for searching the catalog, authoring inventory, and remote orchestration. It does not install PostgreSQL packages locally.
pig-v1.8.1.darwin-arm64.tar.gz03 / AFTER INSTALL
After the install
Verify, upgrade, refresh the catalog, uninstall — one command each.
-m uses the China mirror, -v X.Y.Z pins a version
dnf remove pig; a binary install is just rm /usr/bin/pig
SUPPORT SURFACE
Where to go next
Get started
The first set of commands after pig is installed: wire repositories, install a kernel, install extensions.
Open the tutorial ↗Release notes
What changed, what was added, and what broke — one entry per version.
Browse every version ↗Report an issue
Install failures, missing targets, and reproducible behaviour problems are all welcome.
GitHub Issues ↗