# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman 安装 pgbouncer

查看 pgbouncer 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:pgbouncer
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install pgbouncer
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install pgbouncer
```

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

### Linux

- apk (92%):

```sh
sudo apk add pgbouncer
```

  证据: Alpine Linux edge package indexes: pgbouncer from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install pgbouncer
```

  证据: Debian stable package indexes: pgbouncer from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install pgbouncer
```

  证据: Fedora Rawhide package metadata: pgbouncer from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#pgbouncer
```

  证据: nixpkgs package indexes: pkgs/by-name/pg/pgbouncer/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S pgbouncer
```

  证据: Arch Linux sync databases: pgbouncer from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:pgbouncer
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/pgbouncer>
- **版本:** 1.25.2
- **来源摘要:** Lightweight connection pooler for PostgreSQL
- **主页:** <https://www.pgbouncer.org/>
- **仓库:** <https://github.com/pgbouncer/pgbouncer>
- **上游文档:** <https://www.pgbouncer.org/>
- **许可证:** ISC
- **源码归档:** <https://www.pgbouncer.org/downloads/files/1.25.2/pgbouncer-1.25.2.tar.gz>
- **最后更新:** 2026-05-08T18:18:38Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mkauth.py (cli)
- pgbouncer (cli)
- mkauth.py (别名)
- pgbouncer (别名)

## 依赖

- libevent
- openssl@3

## 构建依赖

- pandoc
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- 注意事项: The config file: $HOMEBREW_PREFIX/etc/pgbouncer.ini is in the "ini" format and you will need to edit it for your particular setup. See: https://pgbouncer.github.io/config.html The auth_file option should point to the $HOMEBREW_PREFIX/etc/userlist.txt file which can be populated by the $HOMEBREW_CELLAR/pgbouncer/1.25.2/bin/mkauth.py script.
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.25.2
- 管理器更新时间: 2026-05-08
- 本地数据: OK
- 上游仓库: https://www.pgbouncer.org/
- 信息: Release/tag comparison is only available for GitHub repositories.

## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## 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: pgbouncer.ini

## Credential files

- Unix: userlist.txt
## 源数据库详情

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

## 其他软件包管理器记录

- Debian apt - pgbouncer - 1.24.1-1+deb13u2: normalized package name match | Debian stable package indexes: pgbouncer from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lightweight connection pooler for PostgreSQL | https://www.pgbouncer.org/
- Nix - pgbouncer: normalized package name match | nixpkgs package indexes: pkgs/by-name/pg/pgbouncer/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - pgbouncer - 1.22.0-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: pgbouncer from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | lightweight connection pooler for PostgreSQL | https://www.pgbouncer.org/
- apk - pgbouncer - 1.25.2-r0: normalized package name match | Alpine Linux edge package indexes: pgbouncer from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Lightweight connection pooler for PostgreSQL | https://www.pgbouncer.org/
- apk - pgbouncer-doc - 1.25.2-r0: normalized package name match | Alpine Linux edge package indexes: pgbouncer-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Lightweight connection pooler for PostgreSQL (documentation) | https://www.pgbouncer.org/
- apk - pgbouncer-openrc - 1.25.2-r0: normalized package name match | Alpine Linux edge package indexes: pgbouncer-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Lightweight connection pooler for PostgreSQL (OpenRC init scripts) | https://www.pgbouncer.org/
- dnf - pgbouncer - 1.25.2-1.fc45: normalized package name match | Fedora Rawhide package metadata: pgbouncer from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Lightweight connection pooler for PostgreSQL | https://www.pgbouncer.org
- pacman - pgbouncer - 1.25.2-1: normalized package name match | Arch Linux sync databases: pgbouncer from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Lightweight connection pooler for PostgreSQL | https://www.pgbouncer.org/
- MacPorts - pgbouncer: normalized package name match | MacPorts ports tree: databases/pgbouncer/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [libevent](https://pkg.so/zh-hans/brew/libevent/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [pandoc](https://pkg.so/zh-hans/brew/pandoc/) - Build dependency declared by Homebrew.
- [pg_partman](https://pkg.so/zh-hans/brew/pg-partman/) - Shares pkgdb curated category or tags: cli, database, database-admin, developer-tools, postgresql.
- [pgcli](https://pkg.so/zh-hans/brew/pgcli/) - Shares pkgdb curated category or tags: cli, database, developer-tools, postgresql.
- [pgbadger](https://pkg.so/zh-hans/brew/pgbadger/) - Shares pkgdb curated category or tags: cli, database, developer-tools, postgresql.
- [pg-schema-diff](https://pkg.so/zh-hans/brew/pg-schema-diff/) - Shares pkgdb curated category or tags: cli, database, developer-tools, postgresql.
- [pgbackrest](https://pkg.so/zh-hans/brew/pgbackrest/) - Shares pkgdb curated category or tags: cli, database, developer-tools, postgresql.
- [pgcopydb](https://pkg.so/zh-hans/brew/pgcopydb/) - Shares pkgdb curated category or tags: cli, database, developer-tools, postgresql.
- [pg_top](https://pkg.so/zh-hans/brew/pg-top/) - Shares pkgdb curated category or tags: cli, database, developer-tools, postgresql.
- [pgpool-ii](https://pkg.so/zh-hans/brew/pgpool-ii/) - Shares pkgdb curated category or tags: cli, connection-pooling, developer-tools, postgresql, proxy.
- [pgrx](https://pkg.so/zh-hans/brew/pgrx/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, database, developer, developer-tools, openssl.

## Combined YAML source

View the package source record on GitHub. [combined/pgbouncer.yml](https://github.com/mxcl/pkgdb/blob/main/combined/pgbouncer.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
