RHEL · Rocky · AlmaLinux
RELEASE MATRIX
Download and install pig
PIG provides Linux packages and binary archives for Linux and macOS. Choose the file for your operating system and CPU architecture.
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 v1.10.0 packages and binaries for offline installation or mirror synchronization. SHA-256 checksums are included.
01 / INSTALL
Install pig
Use the installer or a system package on Linux. Use a binary archive on macOS. You can also build from source.
Install pig with one command
Run on a Linux host with root or sudo access. The script downloads the matching PIG package and installs it with rpm or dpkg.
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.10.0
WHERE IT LANDS
/usr/bin/pig
The extension catalog ships inside the binary; pig ext reload refreshes it on its own.
pig ext listInstall with the system package manager
pig lives in the pigsty-infra repository. After you add the repository, 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
Direct RPM and DEB links for v1.10.0
The current release provides RPM and DEB packages for x86_64 and aarch64. Use GitHub Releases for older versions.
Debian · Ubuntu
Linux · installer-free
Run the commands for your system and architecture. Use uname -m to check: x86_64 corresponds to amd64; aarch64 corresponds to arm64.
curl -fLO https://github.com/pgsty/pig/releases/download/v1.10.0/pig-1.10.0-1.x86_64.rpm
sudo rpm -Uvh pig-1.10.0-1.x86_64.rpm
curl -fLO https://github.com/pgsty/pig/releases/download/v1.10.0/pig-1.10.0-1.aarch64.rpm
sudo rpm -Uvh pig-1.10.0-1.aarch64.rpm
curl -fLO https://github.com/pgsty/pig/releases/download/v1.10.0/pig_1.10.0-1_amd64.deb
sudo dpkg -i pig_1.10.0-1_amd64.deb
curl -fLO https://github.com/pgsty/pig/releases/download/v1.10.0/pig_1.10.0-1_arm64.deb
sudo dpkg -i pig_1.10.0-1_arm64.deb
Extract and install a binary
Download the archive for Linux or macOS. Extract it and place pig in a directory on your PATH.
Linux
Statically linkedmacOS
Intel · Apple Siliconcurl -fLO https://github.com/pgsty/pig/releases/download/v1.10.0/pig-v1.10.0.linux-amd64.tar.gz
tar -xzf pig-v1.10.0.linux-amd64.tar.gz
sudo install -m 0755 pig /usr/bin/pig
pig --version
curl -fLO https://github.com/pgsty/pig/releases/download/v1.10.0/pig-v1.10.0.darwin-arm64.tar.gz
tar -xzf pig-v1.10.0.darwin-arm64.tar.gz
sudo mkdir -p /usr/local/bin
sudo install -m 0755 pig /usr/local/bin/pig
pig version
curl -fsSL https://github.com/pgsty/pig/releases/download/v1.10.0/checksums.txt | grep pig-v1.10.0.linux-amd64.tar.gz | sha256sum -c -Build pig yourself
Install Git, Make, and the Go toolchain specified in go.mod. Then build the current release.
git clone --branch v1.10.0 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
PIG release files are available for these platforms. Use pig ext avail to check PostgreSQL extension package availability.
Enterprise Linux 8 / 9 / 10
RHEL, Rocky Linux, and AlmaLinux, on x86_64 and aarch64.
pig-1.10.0-1.x86_64.rpmDebian 12 / 13
Bookworm and Trixie, on amd64 and arm64.
pig_1.10.0-1_amd64.debUbuntu 22 / 24 / 26
Jammy, Noble, and Resolute, on amd64 and arm64.
pig_1.10.0-1_arm64.debmacOS
Intel and Apple Silicon, for catalog queries, inventory editing, and related tasks. Run PostgreSQL package installation on Linux hosts.
pig-v1.10.0.darwin-arm64.tar.gz03 / AFTER INSTALL
After the install
Check the installation. Update the executable or extension catalog as needed.
-m uses the China mirror. On macOS, download the new archive
sudo dnf remove pig; for an archive install, remove the installed pig file
SUPPORT SURFACE
Where to go next
Get started
Install PostgreSQL and pgvector, start a test instance, and enable the extension.
Open the tutorial ↗Release notes
Read the features, fixes, and compatibility changes for each version.
Browse every version ↗Report an issue
Install failures, missing targets, and reproducible behavior problems are all welcome.
GitHub Issues ↗