Automic VaultAutomic Vault

brew

libpq mit Homebrew, apk, dnf, apt, Nix installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für libpq in AI-Agent-Workflows.

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install libpq

local Homebrew formula metadata

Linux

Alpine Linux apkverifiziert · 92%
sudo apk add libpq

Alpine Linux edge package indexes · libpq · Quelle: dl-cdn.alpinelinux.org

Fedora dnfverifiziert · 92%
sudo dnf install libpq

Fedora Rawhide package metadata · libpq · Quelle: dl.fedoraproject.org

Debian aptverifiziert · 92%
sudo apt install pg-checksums-doc

Debian stable package indexes · pg-checksums-doc · Quelle: deb.debian.org

Nixverifiziert · 92%
nix profile install nixpkgs#pg_checksums

nixpkgs package indexes · pkgs/by-name/pg/pg_checksums/package.nix · Quelle: api.github.com

Überblick

Paketzusammenfassung

Postgres C API library

Befehle und Aliase

  • clusterdb
  • createdb
  • createuser
  • dropdb
  • dropuser
  • ecpg
  • initdb
  • pg_amcheck
  • pg_archivecleanup
  • pg_basebackup
  • pg_checksums
  • pg_combinebackup
  • pg_config
  • pg_controldata
  • pg_createsubscriber
  • pg_ctl
  • pg_dump
  • pg_dumpall
  • pg_isready
  • pg_receivewal
  • pg_recvlogical
  • pg_resetwal
  • pg_restore
  • pg_rewind
  • pg_test_fsync
  • pg_test_timing
  • pg_upgrade
  • pg_verifybackup
  • pg_waldump
  • pg_walsummary
  • pgbench
  • psql

Verlauf

Projektgeschichte und Nutzung

libpq is PostgreSQL's C client library: the small, stable-looking surface that lets C programs connect to PostgreSQL servers, submit queries, and read results. It also underlies several other PostgreSQL client interfaces, so packaging it separately gives developers the client headers, shared library, and familiar tools without requiring a Homebrew PostgreSQL server installation.

Projektgeschichte

PostgreSQL descends from the Berkeley POSTGRES project, whose implementation began in 1986. The Postgres95 transition in 1994 replaced POSTQUEL with SQL and introduced `psql`; the PostgreSQL name arrived in 1996 to connect the POSTGRES heritage with SQL support.

The PostgreSQL manual notes that the `libpq` name came from PostQUEL. As PostgreSQL matured into a long-lived open source database, libpq became the canonical C API for client programs and a shared substrate for other language bindings and command-line clients.

Adoptionsgeschichte

libpq's adoption follows PostgreSQL's adoption: applications, drivers, migration tools, backup tools, and admin scripts need a PostgreSQL client layer even when the database server runs elsewhere. PostgreSQL's 2023 project announcement described the system as benefiting from more than 25 years of open source development and a global community of users, contributors, companies, and organizations.

Homebrew's `libpq` formula packages the client side as a keg-only formula. That matters on developer workstations because it avoids colliding with a full `postgresql` formula while still making `psql`, `pg_dump`, `pg_restore`, `pg_config`, and the C library available to builds and scripts.

Wie es verwendet wird

Typical package-manager use is installing libpq so native extensions, database drivers, and command-line workflows can compile or run against PostgreSQL. Developers use `pg_config` to find build flags, `psql` for interactive sessions, and the dump/restore utilities for movement between PostgreSQL instances.

Warum Paket-Nerds sich dafür interessieren

libpq is package-nerd significant because it is a dependency edge disguised as a database client. Many packages need PostgreSQL client headers and link libraries, but users often do not want a local database server; a separate formula keeps that dependency smaller and less invasive.

It also exposes PostgreSQL's major-version reality to package managers: client utilities can speak across versions, but dump, restore, upgrade, and extension-building workflows often care about exact major lines. That is why versioned formulae such as `libpq@16` and `libpq@17` are useful beside the unversioned formula.

Zeitleiste

  • 1986: Implementation of the Berkeley POSTGRES project began at the University of California at Berkeley.
  • 1994: Postgres95 added an SQL interpreter and `psql`, replacing POSTQUEL and the older monitor program.
  • 1996: The project adopted the PostgreSQL name and reset version numbering to 6.0.
  • 2023-09-14: PostgreSQL 16 was released, including libpq load-balancing support among its client-side changes.
  • 2024-09-26: PostgreSQL 17 was released with new client and administration utilities including `pg_createsubscriber` and `pg_combinebackup`.

Related projects

  • PostgreSQL server, `psql`, ECPG, PostgreSQL client utilities, language drivers that use libpq, and Homebrew's versioned `libpq@16` and `libpq@17` formulae are the closest related projects.

Sicherheitslage

Noch keine Protected-Tool-Abdeckung gefunden

Für libpq wurde kein passendes lokales Secret-Handling-Manifest gefunden. Nucleus-Paketmetadaten bleiben hier veröffentlicht, damit künftige Abdeckung eine stabile Paket-URL hat.

Installationsverhalten

  • In den Formelmetadaten ist kein Homebrew-Post-install-Hook erfasst.
  • Homebrew-Bottle-Metadaten sind für 6 Plattformziele verfügbar.
  • Installiert mit 4 Laufzeitabhängigkeiten.
  • Build-Metadaten listen 3 Build-Abhängigkeiten.

Empfohlene Prüfung

Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.

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
psqlrc in the directory reported by pg_config --sysconfdir~/.psqlrcpg_service.conf in the directory reported by pg_config --sysconfdir~/.pg_service.conf
Windows
%APPDATA%\postgresql\psqlrc.conf%APPDATA%\postgresql\.pg_service.conf

Credential files

Credential-bearing paths to review before unattended agent runs.

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

Executables

Installierte Executables

BefehlArtSichtbarkeitHinweis
clusterdbcliglobales Executable
createdbcliglobales Executable
createusercliglobales Executable
dropdbcliglobales Executable
dropusercliglobales Executable
ecpgcliglobales Executable
initdbcliglobales Executable
pg_amcheckcliglobales Executable
pg_archivecleanupcliglobales Executable
pg_basebackupcliglobales Executable
pg_checksumscliglobales Executable
pg_combinebackupcliglobales Executable
pg_configcliglobales Executable
pg_controldatacliglobales Executable
pg_createsubscribercliglobales Executable
pg_ctlcliglobales Executable
pg_dumpcliglobales Executable
pg_dumpallcliglobales Executable
pg_isreadycliglobales Executable
pg_receivewalcliglobales Executable
pg_recvlogicalcliglobales Executable
pg_resetwalcliglobales Executable
pg_restorecliglobales Executable
pg_rewindcliglobales Executable
pg_test_fsynccliglobales Executable
pg_test_timingcliglobales Executable
pg_upgradecliglobales Executable
pg_verifybackupcliglobales Executable
pg_waldumpcliglobales Executable
pg_walsummarycliglobales Executable
pgbenchcliglobales Executable
psqlcliglobales Executable
reindexdbcliglobales Executable
vacuumdbcliglobales Executable

Aktualität

Version und Aktualität

Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.

Seite generiert2026-07-10
Manager-Version18.4
Manager aktualisiert2026-06-28
lokale DatenOK
Upstreamnot checked
neueste erkannte Versionnicht erkannt

https://www.postgresql.org/docs/current/libpq.html

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:libpq
Version18.4
PaketmanagerHomebrew
Paketmanager-Seitehttps://formulae.brew.sh/formula/libpq
Homepagehttps://www.postgresql.org/docs/current/libpq.html
Repositoryhttps://git.postgresql.org/git/postgresql.git
Upstream-Dokumentationhttps://www.postgresql.org/docs/current/libpq.html
LizenzPostgreSQL
Quellarchivhttps://ftp.postgresql.org/pub/source/v18.4/postgresql-18.4.tar.bz2
Zuletzt aktualisiert2026-06-28T05:00:52Z
Pulseupdated
Abhängigkeitenicu4c@78, krb5, openssl@3, readline
Build-Abhängigkeitendocbook, docbook-xsl, pkgconf
Von macOS bereitgestellte Bibliothekencurl
Bottleverfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnicht definiert
Dienstkeiner deklariert

Registry-Fakten

Details aus der Quelldatenbank

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelibpq
Aliases
  • libpq@18
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
URL Keys
  • stable

Source-Datenbank-Treffer

Andere Paketmanager-Einträge

Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.

apk95%

libpq 18.4-r0

PostgreSQL client library

https://www.postgresql.org/

sudo apk add libpq
  • License: PostgreSQL
  • Architecture: x86_64
  • Source Package: postgresql18
  • 1 Abhängigkeiten
  • 1 stellt bereit
  • normalized package name match
  • Abgeglichen nach: Libpq
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libpq from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

libpq 18.4-1.fc45

PostgreSQL client library

http://www.postgresql.org/

sudo dnf install libpq
  • License: PostgreSQL
  • Category: Unspecified
  • Architecture: i686
  • Source Package: libpq
  • 6 Abhängigkeiten
  • 3 stellt bereit
  • normalized package name match
  • Abgeglichen nach: Libpq
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libpq from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libpq-devel 18.4-1.fc45

Development files for building PostgreSQL client tools

http://www.postgresql.org/

sudo dnf install libpq-devel
  • License: PostgreSQL
  • Category: Unspecified
  • Architecture: i686
  • Source Package: libpq
  • 6 Abhängigkeiten
  • 3 stellt bereit
  • normalized package name match
  • Abgeglichen nach: Libpq
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libpq-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
Debian apt92%

pg-checksums-doc 1.2-2

Activate/deactivate/verify PostgreSQL data checksums (Documentation)

https://github.com/credativ/pg_checksums

sudo apt install pg-checksums-doc
  • Section: database
  • Architecture: all
  • Source Package: pg-checksums
  • installed executable or alias match
  • Abgeglichen nach: Pg Checksums
Debian stable package indexes · deb.debian.org · Debian stable package indexes: pg-checksums-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt92%

postgresql-17-pg-checksums 1.2-2

Activate/deactivate/verify PostgreSQL data checksums

https://github.com/credativ/pg_checksums

sudo apt install postgresql-17-pg-checksums
  • Section: database
  • Architecture: amd64
  • Source Package: pg-checksums
  • 2 Abhängigkeiten
  • 1 optionale Abhängigkeiten
  • installed executable or alias match
  • Abgeglichen nach: Pg Checksums
Debian stable package indexes · deb.debian.org · Debian stable package indexes: postgresql-17-pg-checksums from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix92%

pg_checksums

nix profile install nixpkgs#pg_checksums
  • installed executable or alias match
  • Abgeglichen nach: Pg Checksums
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/pg/pg_checksums/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt92%

pg-checksums-doc 1.1-6

Activate/deactivate/verify PostgreSQL data checksums (Documentation)

https://github.com/credativ/pg_checksums

sudo apt install pg-checksums-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: pg-checksums
  • installed executable or alias match
  • Abgeglichen nach: Pg Checksums
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: pg-checksums-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt92%

postgresql-16-pg-checksums 1.1-6

Activate/deactivate/verify PostgreSQL data checksums

https://github.com/credativ/pg_checksums

sudo apt install postgresql-16-pg-checksums
  • Section: universe/database
  • Architecture: amd64
  • Source Package: pg-checksums
  • 2 Abhängigkeiten
  • 1 optionale Abhängigkeiten
  • installed executable or alias match
  • Abgeglichen nach: Pg Checksums
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: postgresql-16-pg-checksums from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

Quellspur

Aus Repository-Daten generiert

Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.

Verwendete Quellen

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • 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