# 使用 Homebrew, apk, dnf, MacPorts, pacman, apt, zypper 安装 apr-util

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

## 安装

```sh
sudo av install brew:apr-util
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install apr-util
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install apr-util
```

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

### Linux

- apk (92%):

```sh
sudo apk add apr-util
```

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

- dnf (92%):

```sh
sudo dnf install apr-util
```

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

- pacman (92%):

```sh
sudo pacman -S apr-util
```

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

- Debian apt (92%):

```sh
sudo apt install libaprutil1-dbd-mysql
```

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

- zypper (92%):

```sh
sudo zypper install apr-util-devel
```

  证据: openSUSE Tumbleweed package metadata: apr-util-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:apr-util
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/apr-util>
- **版本:** 1.6.3
- **来源摘要:** Companion library to apr, the Apache Portable Runtime library
- **主页:** <https://apr.apache.org/>
- **上游文档:** <https://apr.apache.org/>
- **许可证:** Apache-2.0
- **源码归档:** <https://www.apache.org/dyn/closer.lua?path=apr/apr-util-1.6.3.tar.bz2>
- **最后更新:** 2026-06-22T14:02:44-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- apu-1-config (cli)
- apu-1-config (别名)

## 依赖

- apr
- openssl@3

## macOS 提供的库

- expat
- libxcrypt
- sqlite

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.6.3
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://apr.apache.org/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

APR-util is the companion utility library for the Apache Portable Runtime. It collects higher-level support code around APR, including database, XML, crypto, and other utility interfaces used by Apache-family C software.

### 项目历史

APR-util grew inside the Apache Portable Runtime project as the layer above the core portability APIs. The APR homepage lists APR-util as a supported APR subproject and describes it simply as a companion library to APR.

The 1.6 branch remains the documented stable API line for APR-util. Apache's current project page lists APR-util 1.6.3 as the recommended release and notes that recent maintenance focused on third-party dependency handling, including expat unbundling and builds against current libraries such as OpenSSL and MySQL.

### 采用历史

APR-util's adoption follows APR and Apache HTTP Server culture: it is packaged wherever native Apache modules and APR-linked software are built. The supplied metadata records packages across Homebrew, Debian/Ubuntu, Fedora/dnf, Alpine/apk, Arch/pacman, MacPorts, and openSUSE/zypper.

Because it ships apu-1-config, APR-util is visible to build systems as a traditional Unix development package. Downstream packages use that config helper to discover compiler and linker flags instead of vendoring APR utility code.

### 使用方式

End users rarely invoke APR-util directly. Developers and package build scripts use its headers, libraries, and apu-1-config helper when compiling Apache modules or C programs that need APR's utility facilities.

It is generally installed alongside APR itself. The packaging distinction matters because APR is the portability substrate, while APR-util carries optional utility integrations whose dependencies vary more by platform.

### 为什么软件包爱好者会关心

APR-util is package-manager glue for native Apache ecosystems. It is small, old, and easy to overlook, but it is the kind of ABI-bearing library that determines whether an Apache module build finds the same database, XML, crypto, and portability interfaces on macOS, Linux, and BSD.

The split between apr and apr-util is historically important to packagers: it keeps core portability separate from utility dependencies, reducing unnecessary linkage for packages that only need APR.

### 时间线

- 2000s: APR-util becomes one of the supported subprojects under the Apache Portable Runtime project.
- 2017: APR-util 1.6 branch documented as the stable API line.
- 2023: APR-util 1.6.3 released with dependency maintenance such as expat unbundling and updated library builds.

### Related projects

- Apache Portable Runtime is the core runtime library that APR-util extends.
- Apache HTTP Server is the original Apache ecosystem consumer that made APR and APR-util common native-development dependencies.

### 来源

- <https://apr.apache.org/>
- <https://apr.apache.org/docs/apr-util/1.6>
- source_facts.package-manager


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 源数据库详情

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

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

- Debian apt - libaprutil1-dbd-mysql - 1.6.3-3+b1: normalized package name match | Debian stable package indexes: libaprutil1-dbd-mysql from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Apache Portable Runtime Utility Library - MySQL Driver | https://apr.apache.org/
- Debian apt - libaprutil1-dbd-odbc - 1.6.3-3+b1: normalized package name match | Debian stable package indexes: libaprutil1-dbd-odbc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Apache Portable Runtime Utility Library - ODBC Driver | https://apr.apache.org/
- Debian apt - libaprutil1-dbd-pgsql - 1.6.3-3+b1: normalized package name match | Debian stable package indexes: libaprutil1-dbd-pgsql from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Apache Portable Runtime Utility Library - PostgreSQL Driver | https://apr.apache.org/
- Debian apt - libaprutil1-dbd-sqlite3 - 1.6.3-3+b1: normalized package name match | Debian stable package indexes: libaprutil1-dbd-sqlite3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Apache Portable Runtime Utility Library - SQLite3 Driver | https://apr.apache.org/
- Debian apt - libaprutil1-dev - 1.6.3-3+b1: normalized package name match | Debian stable package indexes: libaprutil1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Apache Portable Runtime Utility Library - Development Headers | https://apr.apache.org/
- Debian apt - libaprutil1-ldap - 1.6.3-3+b1: normalized package name match | Debian stable package indexes: libaprutil1-ldap from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Apache Portable Runtime Utility Library - LDAP Driver | https://apr.apache.org/
- Debian apt - libaprutil1t64 - 1.6.3-3+b1: normalized package name match | Debian stable package indexes: libaprutil1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Apache Portable Runtime Utility Library | https://apr.apache.org/
- Ubuntu apt - libaprutil1-dbd-mysql - 1.6.3-1.1ubuntu7: normalized package name match | Ubuntu 24.04 LTS package indexes: libaprutil1-dbd-mysql from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Apache Portable Runtime Utility Library - MySQL Driver | https://apr.apache.org/
- Ubuntu apt - libaprutil1-dbd-odbc - 1.6.3-1.1ubuntu7: normalized package name match | Ubuntu 24.04 LTS package indexes: libaprutil1-dbd-odbc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Apache Portable Runtime Utility Library - ODBC Driver | https://apr.apache.org/
- Ubuntu apt - libaprutil1-dbd-pgsql - 1.6.3-1.1ubuntu7: normalized package name match | Ubuntu 24.04 LTS package indexes: libaprutil1-dbd-pgsql from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Apache Portable Runtime Utility Library - PostgreSQL Driver | https://apr.apache.org/
- Ubuntu apt - libaprutil1-dbd-sqlite3 - 1.6.3-1.1ubuntu7: normalized package name match | Ubuntu 24.04 LTS package indexes: libaprutil1-dbd-sqlite3 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Apache Portable Runtime Utility Library - SQLite3 Driver | https://apr.apache.org/
- Ubuntu apt - libaprutil1-dev - 1.6.3-1.1ubuntu7: normalized package name match | Ubuntu 24.04 LTS package indexes: libaprutil1-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Apache Portable Runtime Utility Library - Development Headers | https://apr.apache.org/
- Ubuntu apt - libaprutil1-ldap - 1.6.3-1.1ubuntu7: normalized package name match | Ubuntu 24.04 LTS package indexes: libaprutil1-ldap from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Apache Portable Runtime Utility Library - LDAP Driver | https://apr.apache.org/
- Ubuntu apt - libaprutil1t64 - 1.6.3-1.1ubuntu7: normalized package name match | Ubuntu 24.04 LTS package indexes: libaprutil1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Apache Portable Runtime Utility Library | https://apr.apache.org/
- apk - apr-util - 1.6.3-r2: normalized package name match | Alpine Linux edge package indexes: apr-util from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The Apache Portable Runtime Utility Library | https://apr.apache.org/
- apk - apr-util-dbd_mysql - 1.6.3-r2: normalized package name match | Alpine Linux edge package indexes: apr-util-dbd_mysql from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The Apache Portable Runtime Utility Library - MySQL driver | https://apr.apache.org/


## 相关链接

- [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.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [apr](https://pkg.so/zh-hans/brew/apr/) - Runtime dependency declared by Homebrew.
- [php](https://pkg.so/zh-hans/brew/php/) - Popular package that depends on this formula.
- [subversion](https://pkg.so/zh-hans/brew/subversion/) - Popular package that depends on this formula.
- [httpd](https://pkg.so/zh-hans/brew/httpd/) - Popular package that depends on this formula.
- [php@8.3](https://pkg.so/zh-hans/brew/php-8-3/) - Popular package that depends on this formula.
- [php@8.2](https://pkg.so/zh-hans/brew/php-8-2/) - Popular package that depends on this formula.
- [php@8.4](https://pkg.so/zh-hans/brew/php-8-4/) - Popular package that depends on this formula.
- [php@8.1](https://pkg.so/zh-hans/brew/php-8-1/) - Popular package that depends on this formula.
- [nspr](https://pkg.so/zh-hans/brew/nspr/) - Shares pkgdb curated category or tags: cli, developer-tools, library, portable-runtime.
- [glib](https://pkg.so/zh-hans/brew/glib/) - Shares pkgdb curated category or tags: cli, developer-tools, library.
- [pcre2](https://pkg.so/zh-hans/brew/pcre2/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools.
- [harfbuzz](https://pkg.so/zh-hans/brew/harfbuzz/) - Shares pkgdb curated category or tags: cli, developer-tools, library.
- [gettext](https://pkg.so/zh-hans/brew/gettext/) - Shares pkgdb curated category or tags: cli, developer-tools, library.
- [ncurses](https://pkg.so/zh-hans/brew/ncurses/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools.
- [expat](https://pkg.so/zh-hans/brew/expat/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools.
- [activemq-cpp](https://pkg.so/zh-hans/brew/activemq-cpp/) - Local package facts share a topical domain. Shared terms: apache, apr, cli, config, developer.

## Combined YAML source

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


## 来源

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