# PIG：Packager Index Gateway

> PIG 是 PostgreSQL 扩展包管理器：通过一个自包含 CLI，在 EL、Debian 与 Ubuntu 上解析并安装 PostgreSQL 14-18 及目录中的扩展包。


LLMS 索引：[llms.txt](/zh/llms.txt)

PIG 是 PostgreSQL 与其扩展的命令行包管理器。它依托（PiggyBack）系统原生的 `apt` / `dnf`
包管理器，把操作系统发行版、芯片架构、PG 大版本之间的差异，收敛到几条命令背后。

可以先看 [快速上手](/zh/start/)，了解 [为什么需要 pig](/zh/intro/)，或者直接 [安装](/zh/install/)。


## 文档索引

- [上手](https://pig.pgsty.com/zh/start/index.md): 快速上手 pig，PostgreSQL 包管理器
- [简介](https://pig.pgsty.com/zh/intro/index.md): PIG 管什么、解决什么，以及包管理能力止步于哪里
- [安装](https://pig.pgsty.com/zh/install/index.md): 如何下载与安装 pig 包管理器
- [pig](https://pig.pgsty.com/zh/cmd/index.md): pig CLI 命令参考概览
- [pig repo](https://pig.pgsty.com/zh/repo/index.md): 使用 pig repo 子命令管理软件仓库
- [pig ext](https://pig.pgsty.com/zh/ext/index.md): 使用 pig ext 检索扩展目录并管理 PostgreSQL 扩展软件包
- [pig build](https://pig.pgsty.com/zh/build/index.md): 使用 pig build 子命令从源码构建扩展
- [pig sty](https://pig.pgsty.com/zh/sty/index.md): 使用 pig sty 子命令管理 Pigsty 安装
- [pig do](https://pig.pgsty.com/zh/do/index.md): 使用 pig do 执行有边界的 Pigsty 管理 Playbook 任务
- [pig inventory](https://pig.pgsty.com/zh/inventory/index.md): 检视、编辑、校验、体检并与 CMDB 交换 Pigsty 配置清单
- [pig postgres](https://pig.pgsty.com/zh/pg/index.md): 使用 pig postgres 子命令管理本地 PostgreSQL 服务器
- [pig patroni](https://pig.pgsty.com/zh/pt/index.md): 透明运行 patronictl，附带 Pigsty 服务、配置与日志辅助命令
- [pig pe](https://pig.pgsty.com/zh/pe/index.md): 使用 legacy pig pe 快捷命令访问默认 pg_exporter HTTP 端点
- [pig pgbackrest](https://pig.pgsty.com/zh/pb/index.md): 使用 pig pgbackrest 子命令管理 pgBackRest 备份与时间点恢复
- [pig pitr](https://pig.pgsty.com/zh/pitr/index.md): 使用 pig pitr 命令执行编排式时间点恢复（PITR）


- [设计注记](https://pig.pgsty.com/zh/design/index.md): 关于 PIG 关键决策、取舍与实现边界的设计注记。

- [发布注记](https://pig.pgsty.com/zh/release/index.md): pig 每个版本的发布注记
