APT仓库
如何在 Debian/Ubuntu 及其兼容操作系统上,使用 Pigsty 提供的 PostgreSQL 插件 APT 仓库?
Module:
对于 Debian/Ubuntu 及其兼容系统,使用以下命令依次添加 Pigsty 仓库的 GPG 公钥,写入仓库定义,并更新缓存:
# 将 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-io.list > /dev/null <<EOF
deb [signed-by=/etc/apt/keyrings/pigsty.gpg] https://repo.pigsty.cc/apt/infra generic main
deb [signed-by=/etc/apt/keyrings/pigsty.gpg] https://repo.pigsty.cc/apt/pgsql/${distro_codename} ${distro_codename} main
EOF
# 刷新 APT 仓库缓存
sudo apt update
# 将 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-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} main
EOF
# 刷新 APT 仓库缓存
sudo apt update
仓库内容
pigsty-pgsql
仓库包含以下内容:
- 208 个 PostgreSQL 扩展对应的 RPM 包(由 Pigsty 维护,未收录于 PGDG YUM 仓库中)
- 215 个 PostgreSQL 扩展对应的 DEB 包(由 Pigsty 维护,未收录于 PGDG APT 仓库中)
- haproxy 3.1
- redis 7.2
pigsty-infra
仓库包含以下内容:
- etcd : 3.5.18
- duckdb : 1.2.0
- ferretdb: 2.0.0-rc1
- pg_timetable: 5.11.0
- grafana : 11.5.2
- prometheus : 3.1.0
- pushgateway : 1.11.0
- alertmanager : 0.28.0
- blackbox_exporter : 0.25.0
- nginx_exporter : 1.4.1
- node_exporter : 1.8.2
- keepalived_exporter : 1.4.0
- pgbackrest_exporter 0.19.0
- mysqld_exporter : 0.16.0
- redis_exporter : 1.67.0
- kafka_exporter : 1.8.0
- mongodb_exporter : 0.43.1
- VictoriaMetrics : 1.111.0
- VictoriaLogs : 1.9.1
- tigerbeetle 0.16.27
- loki : 3.1.1
- promtail : 3.0.0 (3.1.1 fail on el7/el8)