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.
| Linux | Package | x86_64 | aarch64 |
|---|---|---|---|
| EL | rpm | ✓ | ✓ |
| Debian | deb | ✓ | ✓ |
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 cacheManual 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 updateYUM 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
| Name | Version | License | Comment |
|---|---|---|---|
| grafana | 12.3.0 | AGPLv3 | Visualization Platform |
| loki | 3.1.1 | AGPLv3 | The logging platform |
| promtail | 3.0.0 | APGLv3 | Obsolete in 2025 |
| grafana-infinity-ds | 3.6.0 | Apache-2.0 | versatile datasource |
| grafana-plugins | 12.3.0 | Apache-2.0 | extra panel & datasource plugins |
Victoria Stack
| Name | Version | License | Comment |
|---|---|---|---|
| victoria-metrics | 1.132.0 | Apache-2.0 | VictoriaMetrics, Better Prometheus Alternative |
| victoria-logs | 1.41.0 | Apache-2.0 | VictoriaLogs, Better Logging platform |
| victoria-traces | 0.5.1 | Apache-2.0 | VictoriaTraces, Better Tracing platform |
| victoria-metrics-cluster | 1.132.0 | Apache-2.0 | Distributive version of VictoriaMetrics |
| vmutils | 1.132.0 | Apache-2.0 | VictoriaMetrics Utils |
| vlogscli | 1.41.0 | Apache-2.0 | VictoriaLogs CLI Utils |
| vlagent | 1.41.0 | Apache-2.0 | VictoriaLogs Logging Agent |
| grafana-victorialogs-ds | 0.22.4 | Apache-2.0 | VictoriaLogs Datasource for Grafana |
| grafana-victoriametrics-ds | 0.19.7 | Apache-2.0 | VictoriaMetrics Datasource for Grafana |
Prometheus Stack
| Name | Version | License | Comment |
|---|---|---|---|
| prometheus | 3.8.0 | Apache-2.0 | FOSS TSDB and monitoring platform |
| pushgateway | 1.11.2 | Apache-2.0 | push metrics to prometheus |
| alertmanager | 0.29.0 | Apache-2.0 | manage alerting event |
| blackbox_exporter | 0.27.0 | Apache-2.0 | send probe to endpoints |
Metric Exporters
| Name | Version | License | Comment |
|---|---|---|---|
| pg_exporter | 1.1.0 | Apache-2.0 | Advanced Postgres Metrics Exporter |
| pgbackrest_exporter | 0.21.0 | MIT | expose pgbackrest metrics |
| node_exporter | 1.10.2 | Apache-2.0 | expose linux node metrics |
| keepalived_exporter | 1.7.0 | GPL-3.0 | expose keepalived/VIP metrics |
| nginx_exporter | 1.5.1 | Apache-2.0 | expose nginx metrics |
| zfs_exporter | 3.8.1 | MIT | expose zfs metrics |
| mysqld_exporter | 0.18.0 | Apache-2.0 | expose mysql metrics |
| redis_exporter | 1.80.1 | MIT | expose redis metrics |
| kafka_exporter | 1.9.0 | Apache-2.0 | expose kafka metrics |
| mongodb_exporter | 0.47.2 | Apache-2.0 | expose mongodb metrics |
| mtail | 3.0.8 | Apache-2.0 | tail log and generate metrics |
| vector | 0.51.1 | MPL-2.0 | the versatile logging collector |
Object Storage
| Name | Version | License | Comment |
|---|---|---|---|
| minio | 20251203120000 | AGPLv3 | FOSS S3 Server |
| mcli | 20250813083541 | APGLv3 | FOSS S3 Client |
| rustfs | 1.0.0-a71 | Apache-2.0 | FOSS MinIO, Alpha |
| garage | 2.1.0 | Apache-2.0 | Lightweight S3 |
| seaweedfs | 4.01 | Apache-2.0 | S3 for small files |
| rclone | 1.72.1 | MIT | S3 CLI |
| restic | 0.18.1 | BSD-2 | Backup tool |
| juicefs | 1.3.1 | Apache-2.0 | FS over S3 |
Databases
PostgreSQL related tools, DBMS, and other utils
| Name | Version | License | Comment |
|---|---|---|---|
| etcd | 3.6.6 | Apache-2.0 | Fault Tolerant DCS |
| kafka | 4.0.0 | Apache-2.0 | Message Queue |
| duckdb | 1.4.3 | MIT | Embedded OLAP |
| ferretdb | 2.7.0 | Apache-2.0 | MongoDB over PG |
| tigerbeetle | 0.16.65 | Apache-2.0 | Financial OLTP |
| IvorySQL | 5.0 | Apache-2.0 | Oracle Compatible PG 17.6 |
Utils
Pig the package manager, PostgreSQL tools, and other database related utils
| Name | Version | License | Comment |
|---|---|---|---|
| pig | 0.8.0 | Apache-2.0 | The pg package manager |
| vip-manager | 4.0.0 | BSD-2 | bind L2 vip to pg primary |
| pgflo | 0.0.15 | Apache-2.0 | Stream, transform, and route PG data in real-time. |
| pgschema | 1.4.2 | Apache-2.0 | perform pg schema migration |
| pg_timetable | 6.2.0 | PostgreSQL | Advanced scheduling for PostgreSQL |
| timescaledb-tools | 0.18.1 | Apache-2.0 | optimize timescaledb params |
| timescaledb-event-streamer | 0.20.0 | Apache-2.0 | CDC on timescaledb hypertable |
| dblab | 0.34.2 | MIT | Versatile cli for multiple databases |
| sqlcmd | 1.8.0 | MIT | cli for MS SQL Server (and babelfish) |
| pev2 | 1.17.0 | PostgreSQL | PostgreSQL explain visualizer 2 |
| genai-toolbox | 0.23.0 | Apache-2.0 | Google MCP server for databases |
| sealos | 5.0.1 | Apache-2.0 | Battery-Included Kubernetes distribution |
| v2ray | 5.28.0 | MIT | Building 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-datasourcein/etc/grafana/grafana.ini