INFRA 仓库

INFRA 仓库

pigsty-infra 仓库包含与任何 PostgreSQL 版本和 Linux 主版本无关的通用软件包, 包括 prometheus & grafana 技术栈、PostgreSQL 管理工具,以及许多用 Go 编写的实用工具。

该仓库由 Pigsty 维护,您可以在 https://github.com/pgsty/infra-pkg 找到所有构建源代码与命令。 为 RHEL / Debian / Ubuntu 发行版提供预构建的 RPM / DEB 包,支持 x86_64aarch64 架构。

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 update

YUM 仓库

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 技术栈

名称 版本 许可证 备注
prometheus 3.7.3 Apache-2.0
pushgateway 1.11.2 Apache-2.0
alertmanager 0.29.0 Apache-2.0
blackbox_exporter 0.27.0 Apache-2.0
VictoriaMetrics 1.131.0 Apache-2.0
VictoriaLogs 1.39.0 Apache-2.0
pg_exporter 1.0.3 Apache-2.0
pgbackrest_exporter 0.21.0 MIT
node_exporter 1.10.2 Apache-2.0
keepalived_exporter 1.7.0 GPL-3.0
nginx_exporter 1.5.1 Apache-2.0
zfs_exporter 3.8.1 MIT
mysqld_exporter 0.18.0 Apache-2.0
redis_exporter 1.80.1 MIT
kafka_exporter 1.9.0 Apache-2.0
mongodb_exporter 0.47.2 Apache-2.0
mtail 3.0.8 Apache-2.0

Grafana 技术栈

名称 版本 许可证 备注
grafana 12.3.0 AGPLv3 可视化平台
loki 3.1.1 AGPLv3 日志平台
promtail 3.0.0 APGLv3 已废弃
vector 0.51.1 MPL-2.0
grafana-infinity-ds 3.6.0 Apache-2.0
grafana-victorialogs-ds 0.22.1 Apache-2.0
grafana-victoriametrics-ds 0.19.7 Apache-2.0
grafana-plugins 12.3.0 Apache-2.0

对象存储技术栈

名称 版本 许可证 备注
minio 20250422221226 AGPLv3 开源 S3 服务器
mcli 20250813083541 APGLv3 开源 S3 客户端
rustfs 1.0.0-a71 Apache-2.0 MinIO 替代,Alpha
garage 2.1.0 Apache-2.0 轻量对象存储
seaweedfs 4.01 Apache-2.0 小文件对象存储
rclone 1.72.0 MIT 云存储命令行
restic 0.18.1 BSD-2 备份工具
juicefs 1.3.1 Apache-2.0 S3 文件系统

数据库组件

PostgreSQL 相关工具、数据库管理系统和其他实用程序

名称 版本 许可证 备注
etcd 3.6.6 Apache-2.0 容错分布式协调服务
kafka 4.0.0 Apache-2.0 消息队列
duckdb 1.4.2 MIT 嵌入式 OLAP
ferretdb 2.7.0 Apache-2.0 基于 PG 的 MongoDB
tigerbeetle 0.16.65 Apache-2.0 金融 OLTP
IvorySQL 4.6 Apache-2.0 Oracle 兼容的 PG 17.6

数据库工具

Pig 包管理器、PostgreSQL 工具、数据库管理系统和其他实用程序

名称 版本 许可证 备注
pig 0.7.4 Apache-2.0 PG 包管理器
vip-manager 4.0.0 BSD-2
pgschema 1.4.2 Apache-2.0
pg_timetable 6.2.0 PostgreSQL
timescaledb-tools 0.18.1 Apache-2.0
timescaledb-event-streamer 0.20.0 Apache-2.0
pev2 1.17.0 PostgreSQL
genai-toolbox 0.22.0 Apache-2.0
sealos 5.1.1 Apache-2.0 许可证变化
dblab 0.34.2 MIT
v2ray 5.28.0 MIT
pgflo 0.0.15 Apache-2.0
Last updated on