Linux Repository

The infrastructure to deliver PostgreSQL Extensions

Pigsty has a repository that provides 340+ extra PostgreSQL extensions on mainstream Linux Distros. It is designed to work together with the official PostgreSQL Global Development Group (PGDG) repo. Together, they can provide up to 400+ PostgreSQL Extensions out-of-the-box.

PGSQL RepoDescriptionLink
PGSQL RepoPigsty Extension Repo, 340+ extra extensionspgsql.md
INFRA RepoPigsty Infrastructure Repo, monitoring/toolsinfra.md
PGDG RepoPGDG Official Repo Mirror, PG Kernelpgdg.md
GPG KeyGPG Public Key, signature verificationgpg.md

Compatibility Overview

OS / ArchOSx86_64aarch64
EL8el818 17 16 15 14 1318 17 16 15 14 13
EL9el918 17 16 15 14 1318 17 16 15 14 13
EL10el1018 17 16 15 14 1318 17 16 15 14 13
Debian 12d1218 17 16 15 14 1318 17 16 15 14 13
Debian 13d1318 17 16 15 14 1318 17 16 15 14 13
Ubuntu 22.04u2218 17 16 15 14 1318 17 16 15 14 13
Ubuntu 24.04u2418 17 16 15 14 1318 17 16 15 14 13

Get Started

You can enable the pigsty infra & pgsql repo with the pig CLI tool:

curl https://repo.pigsty.io/pig | bash      # download and install the pig CLI tool
pig repo add all -u                         # add linux, pgdg, pigsty repo and update cache
curl https://repo.pigsty.cc/pig | bash      # download from mirror site
pig repo add -u                             # add linux, pgdg, pigsty repo and update cache

Manual Install

You can also add these repos to your system manually with the default apt, dnf, yum approach.

# Add Pigsty's GPG public key to your system keychain to verify package signatures
curl -fsSL https://repo.pigsty.io/key | sudo gpg --dearmor -o /etc/apt/keyrings/pigsty.gpg

# Get Debian distribution codename (distro_codename=jammy, focal, bullseye, bookworm), and write the corresponding upstream repository address to the APT List file
distro_codename=$(lsb_release -cs)
sudo tee /etc/apt/sources.list.d/pigsty-io.list > /dev/null <<EOF
deb [signed-by=/etc/apt/keyrings/pigsty.gpg] https://repo.pigsty.io/apt/infra generic main
deb [signed-by=/etc/apt/keyrings/pigsty.gpg] https://repo.pigsty.io/apt/pgsql/${distro_codename} ${distro_codename} main
EOF

# Refresh APT repository cache
sudo apt update
# Add Pigsty's GPG public key to your system keychain to verify package signatures
curl -fsSL https://repo.pigsty.io/key | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-pigsty >/dev/null

# Add Pigsty Repo definition files to /etc/yum.repos.d/ directory, including two repositories
sudo tee /etc/yum.repos.d/pigsty-io.repo > /dev/null <<-'EOF'
[pigsty-infra]
name=Pigsty Infra for $basearch
baseurl=https://repo.pigsty.io/yum/infra/$basearch
skip_if_unavailable = 1
enabled = 1
priority = 1
gpgcheck = 1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-pigsty
module_hotfixes=1

[pigsty-pgsql]
name=Pigsty PGSQL For el$releasever.$basearch
baseurl=https://repo.pigsty.io/yum/pgsql/el$releasever.$basearch
skip_if_unavailable = 1
enabled = 1
priority = 1
gpgcheck = 1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-pigsty
module_hotfixes=1
EOF

# Refresh YUM/DNF repository cache
sudo yum makecache;

All the RPM / DEB packages are signed with GPG Key fingerprint (B9BD8B20) in Pigsty repository.


Repository Components

Pigsty has two major repos: INFRA and PGSQL, providing DEB / RPM packages for x86_64 and aarch64 architecture.

The INFRA repo contains packages that are generic to any PostgreSQL version and Linux major version, including Prometheus & Grafana stack, admin tools for Postgres, and many utilities written in Go.

LinuxPackagex86_64aarch64
ELrpm
Debiandeb

The PGSQL repo contains packages that are ad hoc to specific PostgreSQL Major Versions (often ad hoc to a specific Linux distro major version, too). Including extensions and some kernel forks.


Compatibility Details

OS CodeVendorMajorMinorFullnamePG Major VersionComment
el7.x86_64EL77.9CentOS 7 x8615 14 13EOL
el8.x86_64EL88.10RockyLinux 8 x8618 17 16 15 14 13Near EOL
el8.aarch64EL88.10RockyLinux 8 ARM18 17 16 15 14 13Near EOL
el9.x86_64EL99.6RockyLinux 9 x8618 17 16 15 14 13OK
el9.aarch64EL99.6RockyLinux 9 ARM18 17 16 15 14 13OK
el10.x86_64EL1010.0RockyLinux 10 x8618 17 16 15 14 13OK
el10.aarch64EL1010.0RockyLinux 10 ARM18 17 16 15 14 13OK
d11.x86_64Debian1111.11Debian 11 x8617 16 15 14 13EOL
d11.aarch64Debian1111.11Debian 11 ARM17 16 15 14 13EOL
d12.x86_64Debian1212.12Debian 12 x8618 17 16 15 14 13OK
d12.aarch64Debian1212.12Debian 12 ARM18 17 16 15 14 13OK
d13.x86_64Debian1313.1Debian 13 x8618 17 16 15 14 13OK
d13.aarch64Debian1313.1Debian 13 ARM18 17 16 15 14 13OK
u20.x86_64Ubuntu2020.04.6Ubuntu 20.04 x8617 16 15 14 13EOL
u20.aarch64Ubuntu2020.04.6Ubuntu 20.04 ARM17 16 15 14 13EOL
u22.x86_64Ubuntu2222.04.5Ubuntu 22.04 x8618 17 16 15 14 13OK
u22.aarch64Ubuntu2222.04.5Ubuntu 22.04 ARM18 17 16 15 14 13OK
u24.x86_64Ubuntu2424.04.3Ubuntu 24.04 x8618 17 16 15 14 13OK
u24.aarch64Ubuntu2424.04.3Ubuntu 24.04 ARM18 17 16 15 14 13OK

Source

Building specs of these repos and packages are open-sourced on GitHub:


PGDG Repo

The official PostgreSQL APT/YUM repository

GPG Key

Import the GPG key for Pigsty repository

INFRA Repo

Packages that are generic to any PostgreSQL version and Linux major version.

PGSQL Repo

The repo for PostgreSQL Extensions & Kernel Forks


Last modified 2026-01-06: batch update (cc9e058)