# PIG: PostgreSQL package manager

> PIG is a PostgreSQL extension package manager: resolve and install PostgreSQL 14-18 and cataloged extension packages on EL, Debian, and Ubuntu with one self-contained CLI.


LLMS index: [llms.txt](/llms.txt)

PIG is a command-line package manager for PostgreSQL and its extensions. It selects native package names for your operating system, CPU architecture, and PostgreSQL major version, then uses `apt` or `dnf` to install them.

Start with the [Getting Started](/start/) tutorial, read [why pig exists](/intro/), or jump
straight to [installation](/install/).


## Documentation index

- [Getting Started](https://pig.pgsty.com/start/index.md): Install PostgreSQL and pgvector, start an instance, and enable the extension
- [Introduction](https://pig.pgsty.com/intro/index.md): What PIG does, how package installation works, and which platforms it supports
- [Installation](https://pig.pgsty.com/install/index.md): How to download and install the pig package manager
- [pig](https://pig.pgsty.com/cmd/index.md): pig CLI command reference overview
- [pig repo](https://pig.pgsty.com/repo/index.md): Manage software repositories with pig repo
- [pig ext](https://pig.pgsty.com/ext/index.md): Search the extension catalog and manage PostgreSQL extension packages with pig ext
- [pig build](https://pig.pgsty.com/build/index.md): Build PostgreSQL extensions from source with pig build
- [pig sty](https://pig.pgsty.com/sty/index.md): Manage Pigsty installation with pig sty
- [pig inventory](https://pig.pgsty.com/inventory/index.md): Inspect, edit, validate, check, and exchange the Pigsty Inventory
- [pig do](https://pig.pgsty.com/do/index.md): Run Pigsty administration tasks with pig do
- [pig postgres](https://pig.pgsty.com/pg/index.md): Manage local PostgreSQL server with pig postgres subcommand
- [pig patroni](https://pig.pgsty.com/pt/index.md): Run patronictl transparently, with Pigsty service, config, and log helpers
- [pig pe](https://pig.pgsty.com/pe/index.md): Read PostgreSQL metrics and reload pg_exporter configuration
- [pig pgbackrest](https://pig.pgsty.com/pb/index.md): Create, inspect, restore, and expire pgBackRest backups
- [pig pitr](https://pig.pgsty.com/pitr/index.md): Restore PostgreSQL to a selected recovery target with pgBackRest


- [Design Notes](https://pig.pgsty.com/design/index.md): Design notes on the decisions, trade-offs, and implementation boundaries behind PIG.

- [Release Notes](https://pig.pgsty.com/release/index.md): Release notes for every pig version
