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

Object-relational database system. Version 17.10 via Homebrew; verified 2026-07-06.

## Install

```sh
sudo av install brew:postgresql@17
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install postgresql@17
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install postgresql17
```

  Evidence: MacPorts ports tree: databases/postgresql17/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install libecpg-compat3
```

  Evidence: Debian stable package indexes: libecpg-compat3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- apk (92%):

```sh
sudo apk add postgresql17
```

  Evidence: Alpine Linux edge package indexes: postgresql17 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install postgresql17
```

  Evidence: Fedora Rawhide package metadata: postgresql17 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- zypper (92%):

```sh
sudo zypper install postgresql17
```

  Evidence: openSUSE Tumbleweed package metadata: postgresql17 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#postgresql
```

  Evidence: nixpkgs package indexes: postgresql from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S postgresql
```

  Evidence: Arch Linux sync databases: postgresql from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Ubuntu apt (92%):

```sh
sudo apt install postgresql
```

  Evidence: Ubuntu 24.04 LTS package indexes: postgresql from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz

### Windows

- winget (92%):

```sh
winget install --id PostgreSQL.PostgreSQL.17 -e
```

  Evidence: Windows Package Manager source index: PostgreSQL.PostgreSQL.17 from https://cdn.winget.microsoft.com/cache/source.msix

- Chocolatey (92%):

```sh
choco install postgresql17
```

  Evidence: Chocolatey community package catalog: postgresql17 from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','pingplotter'

- Scoop (92%):

```sh
scoop install versions/postgresql17
```

  Evidence: Scoop official bucket manifest trees: bucket/postgresql17.json from https://api.github.com/repos/ScoopInstaller/Versions/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:postgresql@17
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/postgresql@17>
- **Version:** 17.10
- **Source summary:** Object-relational database system
- **Homepage:** <https://www.postgresql.org/>
- **Repository:** <https://git.postgresql.org/gitweb?p=postgresql.git>
- **Upstream docs:** <https://www.postgresql.org/docs/17/index.html>
- **License:** PostgreSQL
- **Source archive:** <https://ftp.postgresql.org/pub/source/v17.10/postgresql-17.10.tar.bz2>
- **Last updated:** 2026-07-06T17:36:25+01:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Dependencies

- gettext
- icu4c@78
- krb5
- lz4
- openssl@3
- readline
- zstd

## Build dependencies

- docbook
- docbook-xsl
- gettext
- pkgconf

## Uses from macOS

- libxml2
- libxslt
- openldap
- perl

## Install behavior

- Post-install hook: not defined
- Service: declared
- Caveats: This formula has created a default database cluster with: initdb --locale=en_US.UTF-8 -E UTF-8 $HOMEBREW_PREFIX/var/postgresql@17 When uninstalling, some dead symlinks are left behind so you may want to run: brew cleanup --prune-prefix
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 17.10
- Package-manager updated: 2026-07-06
- Local data: ok
- Upstream repository: https://www.postgresql.org/
- info: Release/tag comparison is only available for GitHub repositories.

## Security Notes

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



## 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

- Unix: $PGDATA/postgresql.conf, $PGDATA/pg_hba.conf, $PGDATA/pg_ident.conf

## Credential files

- Unix: ~/.pgpass
- Windows: %APPDATA%\postgresql\pgpass.conf
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** postgresql@17
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** yes
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - libecpg-compat3 - 17.9-0+deb13u1: normalized package name match | Debian stable package indexes: libecpg-compat3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | older version of run-time library for ECPG programs | http://www.postgresql.org/
- Debian apt - libecpg-dev - 17.9-0+deb13u1: normalized package name match | Debian stable package indexes: libecpg-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for ECPG (Embedded PostgreSQL for C) | http://www.postgresql.org/
- Debian apt - libecpg6 - 17.9-0+deb13u1: normalized package name match | Debian stable package indexes: libecpg6 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | run-time library for ECPG programs | http://www.postgresql.org/
- Debian apt - libpgtypes3 - 17.9-0+deb13u1: normalized package name match | Debian stable package indexes: libpgtypes3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | shared library libpgtypes for PostgreSQL 17 | http://www.postgresql.org/
- Debian apt - libpq-dev - 17.9-0+deb13u1: normalized package name match | Debian stable package indexes: libpq-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | header files for libpq5 (PostgreSQL library) | http://www.postgresql.org/
- Debian apt - libpq5 - 17.9-0+deb13u1: normalized package name match | Debian stable package indexes: libpq5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | PostgreSQL C client library | http://www.postgresql.org/
- Debian apt - postgresql-17 - 17.9-0+deb13u1: normalized package name match | Debian stable package indexes: postgresql-17 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | The World's Most Advanced Open Source Relational Database | http://www.postgresql.org/
- Debian apt - postgresql-client-17 - 17.9-0+deb13u1: normalized package name match | Debian stable package indexes: postgresql-client-17 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | front-end programs for PostgreSQL 17 | http://www.postgresql.org/
- Debian apt - postgresql-doc-17 - 17.9-0+deb13u1: normalized package name match | Debian stable package indexes: postgresql-doc-17 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | documentation for the PostgreSQL database management system | http://www.postgresql.org/
- Debian apt - postgresql-plperl-17 - 17.9-0+deb13u1: normalized package name match | Debian stable package indexes: postgresql-plperl-17 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | PL/Perl procedural language for PostgreSQL 17 | http://www.postgresql.org/
- Debian apt - postgresql-plpython3-17 - 17.9-0+deb13u1: normalized package name match | Debian stable package indexes: postgresql-plpython3-17 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | PL/Python 3 procedural language for PostgreSQL 17 | http://www.postgresql.org/
- Debian apt - postgresql-pltcl-17 - 17.9-0+deb13u1: normalized package name match | Debian stable package indexes: postgresql-pltcl-17 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | PL/Tcl procedural language for PostgreSQL 17 | http://www.postgresql.org/
- Debian apt - postgresql-server-dev-17 - 17.9-0+deb13u1: normalized package name match | Debian stable package indexes: postgresql-server-dev-17 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for PostgreSQL 17 server-side programming | http://www.postgresql.org/
- winget - PostgreSQL.PostgreSQL.17: normalized package name match | Windows Package Manager source index: PostgreSQL.PostgreSQL.17 from https://cdn.winget.microsoft.com/cache/source.msix
- MacPorts - postgresql17: package manager index match | MacPorts ports tree: databases/postgresql17/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- apk - postgresql17 - 17.10-r0: package manager index match | Alpine Linux edge package indexes: postgresql17 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A sophisticated object-relational DBMS, version 17 | https://www.postgresql.org/


## Related links

- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://www.automicvault.com/pkg/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [Archive and compression packages](https://www.automicvault.com/pkg/archive-compression-tools/) - Matched curated package taxonomy and local package facts.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [krb5](https://www.automicvault.com/pkg/brew/krb5/) - Runtime dependency declared by Homebrew.
- [lz4](https://www.automicvault.com/pkg/brew/lz4/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [zstd](https://www.automicvault.com/pkg/brew/zstd/) - Runtime dependency declared by Homebrew.
- [docbook](https://www.automicvault.com/pkg/brew/docbook/) - Build dependency declared by Homebrew.
- [docbook-xsl](https://www.automicvault.com/pkg/brew/docbook-xsl/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [postgresql@14](https://www.automicvault.com/pkg/brew/postgresql-14/) - Package name indicates the same formula family.
- [postgresql@15](https://www.automicvault.com/pkg/brew/postgresql-15/) - Package name indicates the same formula family.
- [postgresql@16](https://www.automicvault.com/pkg/brew/postgresql-16/) - Package name indicates the same formula family.
- [postgresql@18](https://www.automicvault.com/pkg/brew/postgresql-18/) - Package name indicates the same formula family.

## Combined YAML source

View the package source record on GitHub. [combined/postgresql@17.yml](https://github.com/automic-vault/db/blob/main/combined/postgresql@17.yml)


## Sources

- Nucleus package database
- package-page enrichment
- curated configuration and credential file locations
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
