pkg.soopen package index

brew / rank 296

Install postgresql@16 with Homebrew, apt, winget, apk, chocolatey, dnf, MacPorts, zypper, scoop, Nix, pacman

Object-relational database system. Version 16.15 via Homebrew; verified 2026-10-25. Also installable with ubuntu: sudo apt install libecpg-compat3.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install postgresql@16

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install postgresql16

MacPorts ports tree · databases/postgresql16/Portfile · source: api.github.com

Linux

Ubuntu aptverified · 92%
sudo apt install postgresql-16

Ubuntu 24.04 LTS package indexes · postgresql-16 · source: archive.ubuntu.com

Alpine Linux apkverified · 92%
sudo apk add postgresql16

Alpine Linux edge package indexes · postgresql16 · source: dl-cdn.alpinelinux.org

Fedora dnfverified · 92%
sudo dnf install postgresql16

Fedora Rawhide package metadata · postgresql16 · source: dl.fedoraproject.org

openSUSE zypperverified · 92%
sudo zypper install postgresql16

openSUSE Tumbleweed package metadata · postgresql16 · source: download.opensuse.org

Debian aptverified · 92%
sudo apt install postgresql

Debian stable package indexes · postgresql · source: deb.debian.org

Nixverified · 92%
nix profile install nixpkgs#postgresql

nixpkgs package indexes · postgresql · source: raw.githubusercontent.com

Arch Linux pacmanverified · 92%
sudo pacman -S postgresql

Arch Linux sync databases · postgresql · source: geo.mirror.pkgbuild.com

Windows

Windows Package Managerverified · 92%
winget install --id PostgreSQL.PostgreSQL.16 -e

Windows Package Manager source index · PostgreSQL.PostgreSQL.16 · source: cdn.winget.microsoft.com

Chocolateyverified · 92%
choco install postgresql16

Chocolatey community package catalog · postgresql16 · source: community.chocolatey.org

Scoopverified · 92%
scoop install versions/postgresql16

Scoop official bucket manifest trees · bucket/postgresql16.json · source: api.github.com

overview

Package summary

Object-relational database system

Commands and aliases

No executable aliases were found in the local package database.

history

Project history and usage

PostgreSQL 16 is the 2023 major line of the open-source object-relational database system, packaged with its server and extensive client, operations, backup, and development utilities.

Project history

PostgreSQL descends from the POSTGRES project begun at the University of California, Berkeley in 1986 under Michael Stonebraker. Andrew Yu and Jolly Chen added an SQL interpreter in 1994 and released the result as Postgres95; the community adopted the PostgreSQL name in 1996 to reflect both the POSTGRES lineage and SQL support.

PostgreSQL 16 added logical replication from standby servers, parallel application of large replicated transactions, the `pg_stat_io` monitoring view, additional SQL/JSON functions, and performance improvements in vacuuming and parallel joins.

Adoption history

PostgreSQL grew from a university research system into a community-maintained open-source database used for research and production workloads. The project describes PostgreSQL as having a strong reputation for reliability, data integrity, extensibility, and standards-oriented SQL support.

PostgreSQL 16 is a versioned major line released on September 14, 2023. PostgreSQL's five-year major-version support policy and requirement for explicit major-version upgrades encourage operating-system package collections to retain parallel, versioned packages for applications that cannot immediately migrate.

How it is used

Initialize and operate a database cluster, connect with `psql`, run SQL interactively or from scripts, and use bundled tools such as `pg_dump`, `pg_restore`, `pg_basebackup`, `pgbench`, and `pg_upgrade`. Keep the current minor release within the PostgreSQL 16 line and review compatibility notes before major upgrades.

Why package nerds care

The versioned Homebrew formula gives administrators and developers a reproducible PostgreSQL 16 toolchain rather than silently moving a cluster across incompatible major storage formats. PostgreSQL major upgrades require dump/restore, `pg_upgrade`, or logical replication, making the selected major line operationally meaningful.

The package includes the server, `psql`, cluster administration commands, backup and restore utilities, upgrade tooling, replication helpers, benchmarking tools, and maintenance commands. PostgreSQL 16 is especially relevant for operators interested in `pg_stat_io`, logical replication from standbys, parallel subscription apply, and improved vacuum freezing.

Timeline

  • 1986: Implementation of the Berkeley POSTGRES project began.
  • 1994: Postgres95 added an SQL interpreter and was released as open source.
  • 1996: The project adopted the PostgreSQL name and version 6.0 numbering.
  • 2023-09-14: PostgreSQL 16 was released.

Related projects

  • PostGIS extends PostgreSQL with spatial objects, indexes, and GIS processing. pgAdmin provides graphical administration and development, pgcli supplies an interactive terminal with contextual completion, and pgBackRest handles PostgreSQL backup, WAL archiving, and restore workflows.

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for postgresql@16. Package metadata is still published here so future coverage has a stable package URL.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Formula metadata declares a service or daemon block.
  • Homebrew bottle metadata is available for 5 platform targets.
  • Installs with 7 runtime dependencies.
  • Build metadata lists 2 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
$PGDATA/postgresql.conf$PGDATA/pg_hba.conf$PGDATA/pg_ident.conf

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.pgpass
Windows
%APPDATA%\postgresql\pgpass.conf

executables

Installed executables

CommandKindExposureNote
No executable data was present.

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-11-04
manager version16.15
manager updated2026-10-25
local dataok
upstreamnot checked
latest detectednot detected

https://www.postgresql.org/

install metadata

Package metadata

Package keybrew:postgresql@16
Version16.15
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/postgresql@16
Homepagehttps://www.postgresql.org/
Upstream docshttps://www.postgresql.org/
LicensePostgreSQL
Source archivehttps://ftp.postgresql.org/pub/source/v16.15/postgresql-16.15.tar.bz2
Last updated2026-10-25T01:07:48Z
Pulseupdated
Dependenciesgettext, icu4c@79, krb5, lz4, openssl@4, readline, zstd
Build dependenciesgettext, pkgconf
Uses from macOSlibxml2, libxslt, openldap, perl
Bottleavailable (on arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_tahoe, x86_64_linux)
Homebrew post-installnot defined
Servicedeclared
CaveatsThis formula has created a default database cluster with: initdb --locale=en_US.UTF-8 -E UTF-8 $HOMEBREW_PREFIX/var/postgresql@16

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namepostgresql@16
Version Scheme0
Revision1
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Ubuntu apt95%

libecpg-compat3 16.2-1ubuntu4

older version of run-time library for ECPG programs

http://www.postgresql.org/

sudo apt install libecpg-compat3
  • Section: libs
  • Architecture: amd64
  • Source Package: postgresql-16
  • 3 dependencies
  • normalized package name match
  • Matched by: Postgresql 16
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libecpg-compat3 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libecpg-dev 16.2-1ubuntu4

development files for ECPG (Embedded PostgreSQL for C)

http://www.postgresql.org/

sudo apt install libecpg-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: postgresql-16
  • 5 dependencies
  • normalized package name match
  • Matched by: Postgresql 16
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libecpg-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libecpg6 16.2-1ubuntu4

run-time library for ECPG programs

http://www.postgresql.org/

sudo apt install libecpg6
  • Section: libs
  • Architecture: amd64
  • Source Package: postgresql-16
  • 3 dependencies
  • normalized package name match
  • Matched by: Postgresql 16
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libecpg6 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libpgtypes3 16.2-1ubuntu4

shared library libpgtypes for PostgreSQL 16

http://www.postgresql.org/

sudo apt install libpgtypes3
  • Section: libs
  • Architecture: amd64
  • Source Package: postgresql-16
  • 1 dependencies
  • normalized package name match
  • Matched by: Postgresql 16
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libpgtypes3 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libpq-dev 16.2-1ubuntu4

header files for libpq5 (PostgreSQL library)

http://www.postgresql.org/

sudo apt install libpq-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: postgresql-16
  • 2 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Postgresql 16
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libpq-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libpq5 16.2-1ubuntu4

PostgreSQL C client library

http://www.postgresql.org/

sudo apt install libpq5
  • Section: libs
  • Architecture: amd64
  • Source Package: postgresql-16
  • 4 dependencies
  • normalized package name match
  • Matched by: Postgresql 16
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libpq5 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

postgresql-16 16.2-1ubuntu4

The World's Most Advanced Open Source Relational Database

http://www.postgresql.org/

sudo apt install postgresql-16
  • Section: database
  • Architecture: amd64
  • 26 dependencies
  • 2 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Postgresql 16
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: postgresql-16 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

postgresql-client-16 16.2-1ubuntu4

front-end programs for PostgreSQL 16

http://www.postgresql.org/

sudo apt install postgresql-client-16
  • Section: database
  • Architecture: amd64
  • Source Package: postgresql-16
  • 9 dependencies
  • 1 provides
  • 2 optional deps
  • normalized package name match
  • Matched by: Postgresql 16
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: postgresql-client-16 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

postgresql-doc-16 16.2-1ubuntu4

documentation for the PostgreSQL database management system

http://www.postgresql.org/

sudo apt install postgresql-doc-16
  • Section: doc
  • Architecture: all
  • Source Package: postgresql-16
  • normalized package name match
  • Matched by: Postgresql 16
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: postgresql-doc-16 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

postgresql-plperl-16 16.2-1ubuntu4

PL/Perl procedural language for PostgreSQL 16

http://www.postgresql.org/

sudo apt install postgresql-plperl-16
  • Section: database
  • Architecture: amd64
  • Source Package: postgresql-16
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Postgresql 16
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: postgresql-plperl-16 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

postgresql-plpython3-16 16.2-1ubuntu4

PL/Python 3 procedural language for PostgreSQL 16

http://www.postgresql.org/

sudo apt install postgresql-plpython3-16
  • Section: database
  • Architecture: amd64
  • Source Package: postgresql-16
  • 3 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Postgresql 16
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: postgresql-plpython3-16 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

postgresql-pltcl-16 16.2-1ubuntu4

PL/Tcl procedural language for PostgreSQL 16

http://www.postgresql.org/

sudo apt install postgresql-pltcl-16
  • Section: database
  • Architecture: amd64
  • Source Package: postgresql-16
  • 3 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Postgresql 16
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: postgresql-pltcl-16 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

postgresql-server-dev-16 16.2-1ubuntu4

development files for PostgreSQL 16 server-side programming

http://www.postgresql.org/

sudo apt install postgresql-server-dev-16
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: postgresql-16
  • 5 dependencies
  • normalized package name match
  • Matched by: Postgresql 16
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: postgresql-server-dev-16 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
winget95%

PostgreSQL.PostgreSQL.16

winget install --id PostgreSQL.PostgreSQL.16 -e
  • normalized package name match
  • Matched by: Postgresql 16
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: PostgreSQL.PostgreSQL.16 from https://cdn.winget.microsoft.com/cache/source.msix
MacPorts94%

postgresql16

sudo port install postgresql16
  • package manager index match
  • Matched by: Postgresql16
MacPorts ports tree · api.github.com · MacPorts ports tree: databases/postgresql16/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
apk92%

postgresql16 16.15-r0

A sophisticated object-relational DBMS, version 16

https://www.postgresql.org/

sudo apk add postgresql16
  • License: PostgreSQL
  • Architecture: x86_64
  • Source Package: postgresql16
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Postgresql16
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: postgresql16 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation