PostgreSQL Field Guide

PostgreSQL Linux packages, versions, and PGDG

Verify PostgreSQL 18, PostgreSQL 19, client, and extension packages by Linux distribution, with repository, version, and backport boundaries

“Install PostgreSQL on Linux” is not one stable command. The distribution, release, repository source, CPU architecture, and package name jointly determine the installed major, packaging revision, and security fixes. This page combines changing package evidence from PkgSeek with this guide's installation and upgrade rules.

Package snapshot evidence · PkgSeek

Default postgresql packages across Linux distributions

Indexed
DistributionReleaseIndexed versionRepositoryLinked advisories
Alibaba Cloud Linux313.23-3.0.1.al8official / updates0
Alibaba Cloud Linux415.18-1.alnx4official / updates0
AlmaLinux1016.14-1.el10_2official / AppStream0
AlmaLinux918.4-2.module_el9.8.0+280+5ad12178official / AppStream0
Archrolling18.4-3official / extra0
CentOS Stream1016.14-1.el10official / AppStream0
CentOS Stream913.23-3.el9official / AppStream0
Debiantrixie17+278official / main3
deepin25.216+255official / main0
Fedora4216.13-1.fc42official / updates0
Fedora4318.3-2.fc43official / updates0
Fedora4418.3-2.fc44official / updates0
Kali Linuxkali-rolling18+290official / main0
Kylin OSV10-SP112+214kylin0.1official / 10.1-main0
Kylin OS ServerV10-SP3-240310.5-23.p09.ky10official / updates0
OpenAnolis23.415.18-1.an23official / updates0
OpenAnolis8.1012.22-7.0.1.module+an8.10.0+11420+6683745dofficial / AppStream0
openEuler24.03-LTS-SP415.18-1.oe2403sp4official / everything0
openSUSE15.618-150600.17.9.1official / update-sle0
openSUSEtumbleweed18-3.4official / oss0
Oracle Linux1016.14-1.0.1.el10_2official / appstream0
Oracle Linux812.22-6.0.1.module+el8.10.0+90932+f6d78e3cofficial / appstream34
Oracle Linux913.23-3.el9_8official / appstream26
Raspberry Pi OSbookworm15+248+deb12u1official / bookworm-main0
Raspberry Pi OStrixie17+278official / trixie-main0
Red Hat Enterprise Linux10.216.14-1.el10_2official / AppStream0
Red Hat Enterprise Linux9.818.4-2.module+el9.8.0+24359+da7fad50official / AppStream0
Rocky Linux1016.14-1.el10_2official / AppStream0
Rocky Linux913.23-3.el9_8official / AppStream13
Ubuntufocal12+214official / main0
Ubuntujammy14+238official / main0
Ubuntunoble16+257build1official / main0
Ubunturesolute18+290ubuntu1official / main0
Void Linuxrolling18_1official / current0
Snapshot checked: Aug 2, 2026, 3:47 PM UTC. Distribution revisions and backported fixes are part of the version identity. A zero count is not a permanent security guarantee.Open package lookup

Distinguish four package families

FamilyCommon examplesMeaning
Distribution metapackagepostgresqlFollows the major selected by that distribution release
Versioned serverpostgresql-18, postgresql18-serverPins a major; naming differs between DEB and RPM ecosystems
Client and developmentpostgresql-client-18, libpq-dev, postgresql-develProvides psql, libpq headers, or build files; may not run a server
Extensionpostgresql-18-pgvector, pgvectorMust also match server major, architecture, and extension version

Similar names do not prove identical roles. Verify the client and server separately after installation:

psql --version
sudo -u postgres psql -X -d postgres \
  -c "select version(), current_setting('server_version_num');"

Distribution repositories and PGDG

Distribution repositories generally maintain a selected major. The PostgreSQL Global Development Group repositories are commonly used for other supported majors. Adding PGDG creates an external software-source dependency, so record repository signing, release support, upgrade policy, and an exit path.

Package snapshot evidence · PkgSeek

postgresql-18 in Ubuntu repositories

Indexed
DistributionReleaseIndexed versionRepositoryLinked advisories
Ubunturesolute18.3-1official / main
Snapshot checked: Aug 2, 2026, 3:47 PM UTC. Distribution revisions and backported fixes are part of the version identity. A zero count is not a permanent security guarantee.Open package lookup

Package snapshot evidence · PkgSeek

postgresql-18 in Ubuntu PGDG

No exact indexed coordinate

PkgSeek did not return an exact match for this coordinate. This means “not present in this snapshot”, not “the package does not exist”. Confirm with the upstream repository before acting.

Snapshot checked: Aug 2, 2026, 3:47 PM UTC. Distribution revisions and backported fixes are part of the version identity. A zero count is not a permanent security guarantee.Open package lookup

The tables query exact coordinates in the Ubuntu and PGDG repositories separately. If a card reports “no exact indexed coordinate”, that describes index coverage, not the target repository's contents. Use the target system's apt-cache policy and official PostgreSQL repository instructions as the final installation evidence.

apt-cache policy postgresql postgresql-18 postgresql-client-18
apt-cache madison postgresql-18

Track PostgreSQL 19 packages

Package snapshot evidence · PkgSeek

postgresql-19 in distribution repositories

No exact indexed coordinate

PkgSeek did not return an exact match for this coordinate. This means “not present in this snapshot”, not “the package does not exist”. Confirm with the upstream repository before acting.

Snapshot checked: Aug 2, 2026, 3:47 PM UTC. Distribution revisions and backported fixes are part of the version identity. A zero count is not a permanent security guarantee.Open package lookup

A missing stable distribution package is expected while PostgreSQL 19 remains in beta. Even after a test build appears, keep the beta compatibility lane separate from production PostgreSQL 18. Use the PostgreSQL 18-to-19 upgrade guide for adoption criteria.

Use package evidence safely

  1. Record distro + release + source + repository + architecture + full version.
  2. Determine whether a package contains the server, client, development files, or an extension.
  3. For CVEs, prioritize distribution advisories and backport status over an upstream version prefix.
  4. After installation, verify the connected server; psql --version only identifies the client.
  5. A major change requires pg_upgrade, dump/restore, or logical replication. Replacing a package does not upgrade a data directory.

No result does not mean nonexistent

Package indexes have coverage and refresh boundaries. When this page reports “no exact indexed coordinate”, continue with the upstream repository; do not let a person or model turn an empty array into a definitive answer.

Minimum contract for an AI agent

task: resolve_postgresql_package
target:
  distro: ubuntu
  release: noble
  architecture: amd64
  source: pgdg
requirements:
  - return exact package coordinates and observed_at
  - separate indexed fact, inference, and unknown
  - never interpret missing index data as package absence
  - ask before repository, package, service, or data changes
  - verify client and server versions after execution

PkgSeek publishes a read-only MCP tool catalogue and an OpenAPI 3.1 specification. See the AI context contract for the execution boundary.

Last updated on

On this page