Automic VaultAutomic Vault

brew

libpq を Homebrew, apk, dnf, apt, Nix でインストール

libpq のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install libpq

local Homebrew formula metadata

Linux

Alpine Linux apk確認済み · 92%
sudo apk add libpq

Alpine Linux edge package indexes · libpq · ソース: dl-cdn.alpinelinux.org

Fedora dnf確認済み · 92%
sudo dnf install libpq

Fedora Rawhide package metadata · libpq · ソース: dl.fedoraproject.org

Debian apt確認済み · 92%
sudo apt install pg-checksums-doc

Debian stable package indexes · pg-checksums-doc · ソース: deb.debian.org

Nix確認済み · 92%
nix profile install nixpkgs#pg_checksums

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

概要

パッケージ概要

Postgres C API library

コマンドとエイリアス

  • 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

履歴

プロジェクトの歴史と使われ方

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.

プロジェクトの歴史

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.

採用の歴史

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.

使われ方

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.

パッケージ好きにとっての重要性

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.

タイムライン

  • 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.

セキュリティ状態

保護ツール対応はまだ見つかっていません

libpq に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 6 個のプラットフォームターゲットで利用できます。
  • 4 件の実行時依存関係とともにインストールされます。
  • ビルドメタデータには 3 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

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

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
clusterdbcliグローバル実行可能ファイル
createdbcliグローバル実行可能ファイル
createusercliグローバル実行可能ファイル
dropdbcliグローバル実行可能ファイル
dropusercliグローバル実行可能ファイル
ecpgcliグローバル実行可能ファイル
initdbcliグローバル実行可能ファイル
pg_amcheckcliグローバル実行可能ファイル
pg_archivecleanupcliグローバル実行可能ファイル
pg_basebackupcliグローバル実行可能ファイル
pg_checksumscliグローバル実行可能ファイル
pg_combinebackupcliグローバル実行可能ファイル
pg_configcliグローバル実行可能ファイル
pg_controldatacliグローバル実行可能ファイル
pg_createsubscribercliグローバル実行可能ファイル
pg_ctlcliグローバル実行可能ファイル
pg_dumpcliグローバル実行可能ファイル
pg_dumpallcliグローバル実行可能ファイル
pg_isreadycliグローバル実行可能ファイル
pg_receivewalcliグローバル実行可能ファイル
pg_recvlogicalcliグローバル実行可能ファイル
pg_resetwalcliグローバル実行可能ファイル
pg_restorecliグローバル実行可能ファイル
pg_rewindcliグローバル実行可能ファイル
pg_test_fsynccliグローバル実行可能ファイル
pg_test_timingcliグローバル実行可能ファイル
pg_upgradecliグローバル実行可能ファイル
pg_verifybackupcliグローバル実行可能ファイル
pg_waldumpcliグローバル実行可能ファイル
pg_walsummarycliグローバル実行可能ファイル
pgbenchcliグローバル実行可能ファイル
psqlcliグローバル実行可能ファイル
reindexdbcliグローバル実行可能ファイル
vacuumdbcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-10
マネージャ版18.4
マネージャ更新日2026-06-28
ローカルデータOK
上流not checked
検出された最新未検出

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

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:libpq
バージョン18.4
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/libpq
ホームページhttps://www.postgresql.org/docs/current/libpq.html
リポジトリhttps://git.postgresql.org/git/postgresql.git
上流ドキュメントhttps://www.postgresql.org/docs/current/libpq.html
ライセンスPostgreSQL
ソースアーカイブhttps://ftp.postgresql.org/pub/source/v18.4/postgresql-18.4.tar.bz2
最終更新2026-06-28T05:00:52Z
Pulseupdated
依存関係icu4c@78, krb5, openssl@3, readline
ビルド依存関係docbook, docbook-xsl, pkgconf
macOS 提供ライブラリcurl
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

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

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

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 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: 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 依存関係
  • 3 提供
  • normalized package name match
  • 一致条件: 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 依存関係
  • 3 提供
  • normalized package name match
  • 一致条件: 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
  • 一致条件: 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 依存関係
  • 1 任意依存関係
  • installed executable or alias match
  • 一致条件: 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
  • 一致条件: 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
  • 一致条件: 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 依存関係
  • 1 任意依存関係
  • installed executable or alias match
  • 一致条件: 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

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • 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