INFRA 仓库
INFRA 仓库
pigsty-infra 仓库包含与任何 PostgreSQL 版本和 Linux 主版本无关的通用软件包,
包括 prometheus & grafana 技术栈、PostgreSQL 管理工具,以及许多用 Go 编写的实用工具。
该仓库由 Pigsty 维护,您可以在 https://github.com/pgsty/infra-pkg 找到所有构建源代码与命令。
为 RHEL / Debian / Ubuntu 发行版提供预构建的 RPM / DEB 包,支持 x86_64 和 aarch64 架构。
| Linux | 包类型 | x86_64 | aarch64 |
|---|---|---|---|
| EL | rpm |
✓ | ✓ |
| Debian | deb |
✓ | ✓ |
Infra 仓库的更新记录可以参考 Release-Infra 变更日志。
快速上手
您可以使用 pig CLI 工具添加 pigsty-infra 仓库,它会自动从 apt/yum/dnf 中选择合适的包管理器。
curl https://repo.pigsty.io/pig | bash # 下载并安装 pig CLI 工具
pig repo add infra # 将 pigsty-infra 仓库文件添加到您的系统
pig repo update # 使用 apt / dnf 更新本地仓库缓存curl https://repo.pigsty.cc/pig | bash # 从镜像安装 pig
pig repo add infra # 将 pigsty-infra 仓库文件添加到您的系统
pig repo update # 使用 apt / dnf 更新本地仓库缓存# 您可以使用以下命令管理 infra 仓库:
pig repo add infra -u # 添加仓库文件,并更新缓存
pig repo add infra -ru # 删除所有现有仓库,添加仓库并创建缓存
pig repo set infra # = pigsty repo add infra -ru
pig repo add all # 将 infra、node、pgsql 仓库添加到您的系统
pig repo set all # 删除现有仓库,添加上述仓库并更新缓存如果您在中国大陆区域,可以考虑使用中国 CDN 镜像
手动设置
您也可以不使用 pig CLI 工具直接使用此仓库,手动将其添加到您的 Linux 操作系统仓库列表中:
APT 仓库
在 Debian / Ubuntu 兼容的 Linux 发行版上,您可以手动添加 GPG 密钥 和 APT 仓库文件:
# 将 Pigsty 的 GPG 公钥添加到您的系统密钥链以验证包签名
curl -fsSL https://repo.pigsty.io/key | sudo gpg --dearmor -o /etc/apt/keyrings/pigsty.gpg
# 获取 Debian 发行版代号(distro_codename=jammy, focal, bullseye, bookworm)
# 并将相应的上游仓库地址写入 APT List 文件
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
# 刷新 APT 仓库缓存
sudo apt update# 将 Pigsty 的 GPG 公钥添加到您的系统密钥链以验证包签名
curl -fsSL https://repo.pigsty.cc/key | sudo gpg --dearmor -o /etc/apt/keyrings/pigsty.gpg
# 获取 Debian 发行版代号(distro_codename=jammy, focal, bullseye, bookworm)
# 并将相应的上游仓库地址写入 APT List 文件
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
# 刷新 APT 仓库缓存
sudo apt updateYUM 仓库
在 RHEL 兼容的 Linux 发行版上,您可以手动添加 GPG 密钥 和 YUM 仓库文件:
# 将 Pigsty 的 GPG 公钥添加到您的系统密钥链以验证包签名
curl -fsSL https://repo.pigsty.io/key | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-pigsty >/dev/null
# 将 Pigsty 仓库定义文件添加到 /etc/yum.repos.d/ 目录
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
# 刷新 YUM/DNF 仓库缓存
sudo yum makecache;# 将 Pigsty 的 GPG 公钥添加到您的系统密钥链以验证包签名
curl -fsSL https://repo.pigsty.cc/key | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-pigsty >/dev/null
# 将 Pigsty 仓库定义文件添加到 /etc/yum.repos.d/ 目录
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
# 刷新 YUM/DNF 仓库缓存
sudo yum makecache;内容
Prometheus 技术栈
| 名称 | 版本 | 许可证 | 备注 |
|---|---|---|---|
| VictoriaMetrics | 1.129.1 | ||
| VictoriaLogs | 1.37.2 | ||
| prometheus | 3.7.3 | ||
| pushgateway | 1.11.2 | ||
| alertmanager | 0.29.0 | ||
| blackbox_exporter | 0.27.0 | ||
| pg_exporter | 1.0.1 | ||
| pgbackrest_exporter | 0.21.0 | ||
| node_exporter | 1.10.2 | ||
| keepalived_exporter | 1.7.0 | ||
| nginx_exporter | 1.5.1 | ||
| zfs_exporter | 3.8.1 | ||
| mysqld_exporter | 0.18.0 | ||
| redis_exporter | 1.80.0 | ||
| kafka_exporter | 1.9.0 | ||
| mongodb_exporter | 0.47.1 | ||
| mtail | 3.0.8 |
Grafana 技术栈
| 名称 | 版本 | 许可证 | 备注 |
|---|---|---|---|
| grafana | 12.1.0 | 可视化平台 | |
| loki | 3.1.1 | 日志平台 | |
| promtail | 3.0.0 | 已废弃 | |
| vector | 0.51.0 | ||
| grafana-infinity-ds | 3.6.0 | ||
| grafana-victorialogs-ds | 0.21.4 | ||
| grafana-victoriametrics-ds | 0.19.6 | ||
| grafana-plugins | 12.0.0 |
数据库组件
PostgreSQL 相关工具、数据库管理系统和其他实用程序
| 名称 | 版本 | 许可证 | 备注 |
|---|---|---|---|
| etcd | 3.6.5 | 容错分布式协调服务 | |
| minio | 20250907161309 | 开源 S3 服务器 | |
| mcli | 20250813083541 | 开源 S3 客户端 | |
| kafka | 4.0.0 | 消息队列 | |
| duckdb | 1.4.1 | 嵌入式 OLAP | |
| ferretdb | 2.5.0 | 基于 PG 的 MongoDB | |
| tigerbeetle | 0.16.60 | 金融 OLTP | |
| IvorySQL | 4.6 | Oracle 兼容的 PG 17.6 |
数据库工具
Pig 包管理器、PostgreSQL 工具、数据库管理系统和其他实用程序
| 名称 | 版本 | 许可证 | 备注 |
|---|---|---|---|
| pig | 0.7.1 | Apache-2.0 | PG 包管理器 |
| vip-manager | 4.0.0 | ||
| pg_timetable | 6.1.0 | ||
| pev2 | 1.17.0 | ||
| sealos | 5.0.1 | ||
| rclone | 1.71.2 | ||
| restic | 0.18.1 | ||
| juicefs | 1.3.0 | ||
| dblab | 0.34.2 | ||
| v2ray | 5.28.0 |
Last updated on