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
| Distribution | Release | Indexed version | Repository | Linked advisories |
|---|---|---|---|---|
| Alibaba Cloud Linux | 3 | 13.23-3.0.1.al8 | official / updates | 0 |
| Alibaba Cloud Linux | 4 | 15.18-1.alnx4 | official / updates | 0 |
| AlmaLinux | 10 | 16.14-1.el10_2 | official / AppStream | 0 |
| AlmaLinux | 9 | 18.4-2.module_el9.8.0+280+5ad12178 | official / AppStream | 0 |
| Arch | rolling | 18.4-3 | official / extra | 0 |
| CentOS Stream | 10 | 16.14-1.el10 | official / AppStream | 0 |
| CentOS Stream | 9 | 13.23-3.el9 | official / AppStream | 0 |
| Debian | trixie | 17+278 | official / main | 3 |
| deepin | 25.2 | 16+255 | official / main | 0 |
| Fedora | 42 | 16.13-1.fc42 | official / updates | 0 |
| Fedora | 43 | 18.3-2.fc43 | official / updates | 0 |
| Fedora | 44 | 18.3-2.fc44 | official / updates | 0 |
| Kali Linux | kali-rolling | 18+290 | official / main | 0 |
| Kylin OS | V10-SP1 | 12+214kylin0.1 | official / 10.1-main | 0 |
| Kylin OS Server | V10-SP3-2403 | 10.5-23.p09.ky10 | official / updates | 0 |
| OpenAnolis | 23.4 | 15.18-1.an23 | official / updates | 0 |
| OpenAnolis | 8.10 | 12.22-7.0.1.module+an8.10.0+11420+6683745d | official / AppStream | 0 |
| openEuler | 24.03-LTS-SP4 | 15.18-1.oe2403sp4 | official / everything | 0 |
| openSUSE | 15.6 | 18-150600.17.9.1 | official / update-sle | 0 |
| openSUSE | tumbleweed | 18-3.4 | official / oss | 0 |
| Oracle Linux | 10 | 16.14-1.0.1.el10_2 | official / appstream | 0 |
| Oracle Linux | 8 | 12.22-6.0.1.module+el8.10.0+90932+f6d78e3c | official / appstream | 34 |
| Oracle Linux | 9 | 13.23-3.el9_8 | official / appstream | 26 |
| Raspberry Pi OS | bookworm | 15+248+deb12u1 | official / bookworm-main | 0 |
| Raspberry Pi OS | trixie | 17+278 | official / trixie-main | 0 |
| Red Hat Enterprise Linux | 10.2 | 16.14-1.el10_2 | official / AppStream | 0 |
| Red Hat Enterprise Linux | 9.8 | 18.4-2.module+el9.8.0+24359+da7fad50 | official / AppStream | 0 |
| Rocky Linux | 10 | 16.14-1.el10_2 | official / AppStream | 0 |
| Rocky Linux | 9 | 13.23-3.el9_8 | official / AppStream | 13 |
| Ubuntu | focal | 12+214 | official / main | 0 |
| Ubuntu | jammy | 14+238 | official / main | 0 |
| Ubuntu | noble | 16+257build1 | official / main | 0 |
| Ubuntu | resolute | 18+290ubuntu1 | official / main | 0 |
| Void Linux | rolling | 18_1 | official / current | 0 |
Distinguish four package families
| Family | Common examples | Meaning |
|---|---|---|
| Distribution metapackage | postgresql | Follows the major selected by that distribution release |
| Versioned server | postgresql-18, postgresql18-server | Pins a major; naming differs between DEB and RPM ecosystems |
| Client and development | postgresql-client-18, libpq-dev, postgresql-devel | Provides psql, libpq headers, or build files; may not run a server |
| Extension | postgresql-18-pgvector, pgvector | Must 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
| Distribution | Release | Indexed version | Repository | Linked advisories |
|---|---|---|---|---|
| Ubuntu | resolute | 18.3-1 | official / main | — |
Package snapshot evidence · PkgSeek
postgresql-18 in Ubuntu PGDG
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.
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-18Track PostgreSQL 19 packages
Package snapshot evidence · PkgSeek
postgresql-19 in distribution repositories
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.
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
- Record
distro + release + source + repository + architecture + full version. - Determine whether a package contains the server, client, development files, or an extension.
- For CVEs, prioritize distribution advisories and backport status over an upstream version prefix.
- After installation, verify the connected server;
psql --versiononly identifies the client. - 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 executionPkgSeek 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