INFRA Repo

INFRA Repo

The pigsty-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 utils written in go.

This repo is maintained by Ruohang Feng (Vonng) @ Pigsty, you can find all the build specs on https://github.com/pgsty/infra-pkg. Prebuilt RPM / DEB packages for RHEL / Debian / Ubuntu distros available for x86_64 and aarch64 arch. Hosted on cloudflare CDN for free global access.

LinuxPackagex86_64aarch64
ELrpm
Debiandeb

You can check the Release - Infra Chanage Log for the latest updates.

Quick Start

You can add the pigsty-infra repo with the pig CLI tool, it will automatically choose from apt/yum/dnf.

curl https://repo.pigsty.io/pig | bash  # download and install the pig CLI tool
pig repo add infra                      # add pigsty-infra repo file to you system
pig repo update                         # update local repo cache with apt / dnf
# use when in mainland china or cloudflare is down
curl https://repo.pigsty.cc/pig | bash  # install pig from china CDN mirror 
pig repo add infra                      # add pigsty-infra repo file to you system
pig repo update                         # update local repo cache with apt / dnf
# you can manage infra repo with these commands:
pig repo add infra -u       # add repo file, and update cache
pig repo add infra -ru      # remove all existing repo, add repo and make cache
pig repo set infra          # = pigsty repo add infra -ru

pig repo add all            # add infra, node, pgsql repo to your system
pig repo set all            # remove existing repo, add above repos and update cache

Manual Setup

You can also use this repo directly without the pig CLI tool, by add them to your linux os repo list manually:

APT Repo

On Debian / Ubuntu compatible Linux distros, you can add the GPG Key and APT repo file manually with:

# Add Pigsty's GPG public key to your system keychain to verify package signatures, or just trust
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-infra.list > /dev/null <<EOF
deb [signed-by=/etc/apt/keyrings/pigsty.gpg] https://repo.pigsty.io/apt/infra generic main
EOF

# Refresh APT repository cache
sudo apt update
# use when in mainland china or cloudflare is down
# Add Pigsty's GPG public key to your system keychain to verify package signatures, or just trust
curl -fsSL https://repo.pigsty.cc/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-infra.list > /dev/null <<EOF
deb [signed-by=/etc/apt/keyrings/pigsty.gpg] https://repo.pigsty.cc/apt/infra generic main
EOF

# Refresh APT repository cache
sudo apt update
# If you don't want to trust any GPG key, just trust the repo directly
distro_codename=$(lsb_release -cs)
sudo tee /etc/apt/sources.list.d/pigsty-infra.list > /dev/null <<EOF
deb [trust=yes] https://repo.pigsty.io/apt/infra generic main
EOF

sudo apt update

YUM Repo

On RHEL compatible Linux distros, you can add the GPG Key and Yum repo file manually with:

# 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
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
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;
# use when in mainland china or cloudflare is down
# Add Pigsty's GPG public key to your system keychain to verify package signatures
curl -fsSL https://repo.pigsty.cc/key | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-pigsty >/dev/null

# Add Pigsty Repo definition files to /etc/yum.repos.d/ directory
sudo tee /etc/yum.repos.d/pigsty-infra.repo > /dev/null <<-'EOF'
[pigsty-infra]
name=Pigsty Infra for $basearch
baseurl=https://repo.pigsty.cc/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
EOF

# Refresh YUM/DNF repository cache
sudo yum makecache;
# If you don't want to trust any GPG key, just trust the repo directly
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
skip_if_unavailable = 1
enabled = 1
priority = 1
gpgcheck = 0
module_hotfixes=1
EOF

sudo yum makecache;

Content

Grafana Stack

NameVersionLicenseComment
grafana12.3.0AGPLv3Visualization Platform
loki3.1.1AGPLv3The logging platform
promtail3.0.0APGLv3Obsolete in 2025
grafana-infinity-ds3.6.0Apache-2.0versatile datasource
grafana-plugins12.3.0Apache-2.0extra panel & datasource plugins

Victoria Stack

NameVersionLicenseComment
victoria-metrics1.132.0Apache-2.0VictoriaMetrics, Better Prometheus Alternative
victoria-logs1.41.0Apache-2.0VictoriaLogs, Better Logging platform
victoria-traces0.5.1Apache-2.0VictoriaTraces, Better Tracing platform
victoria-metrics-cluster1.132.0Apache-2.0Distributive version of VictoriaMetrics
vmutils1.132.0Apache-2.0VictoriaMetrics Utils
vlogscli1.41.0Apache-2.0VictoriaLogs CLI Utils
vlagent1.41.0Apache-2.0VictoriaLogs Logging Agent
grafana-victorialogs-ds0.22.4Apache-2.0VictoriaLogs Datasource for Grafana
grafana-victoriametrics-ds0.19.7Apache-2.0VictoriaMetrics Datasource for Grafana

Prometheus Stack

NameVersionLicenseComment
prometheus3.8.0Apache-2.0FOSS TSDB and monitoring platform
pushgateway1.11.2Apache-2.0push metrics to prometheus
alertmanager0.29.0Apache-2.0manage alerting event
blackbox_exporter0.27.0Apache-2.0send probe to endpoints

Metric Exporters

NameVersionLicenseComment
pg_exporter1.1.0Apache-2.0Advanced Postgres Metrics Exporter
pgbackrest_exporter0.21.0MITexpose pgbackrest metrics
node_exporter1.10.2Apache-2.0expose linux node metrics
keepalived_exporter1.7.0GPL-3.0expose keepalived/VIP metrics
nginx_exporter1.5.1Apache-2.0expose nginx metrics
zfs_exporter3.8.1MITexpose zfs metrics
mysqld_exporter0.18.0Apache-2.0expose mysql metrics
redis_exporter1.80.1MITexpose redis metrics
kafka_exporter1.9.0Apache-2.0expose kafka metrics
mongodb_exporter0.47.2Apache-2.0expose mongodb metrics
mtail3.0.8Apache-2.0tail log and generate metrics
vector0.51.1MPL-2.0the versatile logging collector

Object Storage

NameVersionLicenseComment
minio20251203120000AGPLv3FOSS S3 Server
mcli20250813083541APGLv3FOSS S3 Client
rustfs1.0.0-a71Apache-2.0FOSS MinIO, Alpha
garage2.1.0Apache-2.0Lightweight S3
seaweedfs4.01Apache-2.0S3 for small files
rclone1.72.1MITS3 CLI
restic0.18.1BSD-2Backup tool
juicefs1.3.1Apache-2.0FS over S3

Databases

PostgreSQL related tools, DBMS, and other utils

NameVersionLicenseComment
etcd3.6.6Apache-2.0Fault Tolerant DCS
kafka4.0.0Apache-2.0Message Queue
duckdb1.4.3MITEmbedded OLAP
ferretdb2.7.0Apache-2.0MongoDB over PG
tigerbeetle0.16.65Apache-2.0Financial OLTP
IvorySQL5.0Apache-2.0Oracle Compatible PG 17.6

Utils

Pig the package manager, PostgreSQL tools, and other database related utils

NameVersionLicenseComment
pig0.8.0Apache-2.0The pg package manager
vip-manager4.0.0BSD-2bind L2 vip to pg primary
pgflo0.0.15Apache-2.0Stream, transform, and route PG data in real-time.
pgschema1.4.2Apache-2.0perform pg schema migration
pg_timetable6.2.0PostgreSQLAdvanced scheduling for PostgreSQL
timescaledb-tools0.18.1Apache-2.0optimize timescaledb params
timescaledb-event-streamer0.20.0Apache-2.0CDC on timescaledb hypertable
dblab0.34.2MITVersatile cli for multiple databases
sqlcmd1.8.0MITcli for MS SQL Server (and babelfish)
pev21.17.0PostgreSQLPostgreSQL explain visualizer 2
genai-toolbox0.23.0Apache-2.0Google MCP server for databases
sealos5.0.1Apache-2.0Battery-Included Kubernetes distribution
v2ray5.28.0MITBuilding proxies to bypass network restrictions.

Hint: When using the victoria datasource for grafana, don’t forget to set allow_loading_unsigned_plugins = victoriametrics-logs-datasource,victoriametrics-metrics-datasource in /etc/grafana/grafana.ini

Last updated on