Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper 安装 apr

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install apr

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install apr

MacPorts ports tree · devel/apr/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add apr

Alpine Linux edge package indexes · apr · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install apr

Fedora Rawhide package metadata · apr · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#apr

nixpkgs package indexes · pkgs/by-name/ap/apr/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S apr

Arch Linux sync databases · apr · 来源: geo.mirror.pkgbuild.com

Debian apt已验证 · 92%
sudo apt install libapr1-dev

Debian stable package indexes · libapr1-dev · 来源: deb.debian.org

openSUSE zypper已验证 · 92%
sudo zypper install apr-devel

openSUSE Tumbleweed package metadata · apr-devel · 来源: download.opensuse.org

概览

软件包摘要

Apache Portable Runtime library

命令和别名

  • apr-1-config

历史

项目历史与用法

Apache Portable Runtime is a C portability library that gives Apache-family software a consistent API over platform-specific operating-system services. It abstracts files, sockets, processes, threads, memory pools, locking, and related native facilities.

项目历史

APR originated in the Apache HTTP Server world and became its own Apache project around a general portability mission: provide predictable behavior across operating systems so application code does not need piles of platform-specific branches.

The project retained a classic Apache development shape: source in Apache Subversion, stable API manuals by branch, release tarballs, mailing-list development, and a small set of companion subprojects such as APR-util and APR-iconv.

The current stable documentation line is APR 1.7. Apache's project page lists APR 1.7.6 as the recommended release in 2025 and describes 1.7 as an enhancement and bugfix line documented through the project's CHANGES files.

采用历史

APR first mattered because Apache HTTP Server needed portable native infrastructure across Unix, Windows, and other supported systems. Apache later advertised projects using APR outside HTTP Server, explicitly encouraging broader reuse after several years of development.

The supplied package metadata shows the result of that portability role: APR is packaged across Homebrew, Debian/Ubuntu, Fedora/dnf, Alpine/apk, Arch/pacman, MacPorts, Nix, and openSUSE/zypper. That spread is typical for a foundational C library rather than an end-user CLI.

APR's apr-1-config executable is part of its adoption story. It gives source builds a stable way to ask an installed APR for include paths, compiler flags, and linker flags, which is why it appears in so many package recipes.

使用方式

Developers use APR by compiling against its headers and library, often discovered through apr-1-config. Runtime users usually encounter it as an indirect dependency of Apache HTTP Server, Subversion-era tooling, or Apache modules.

APR's memory pool model and portability wrappers are particularly recognizable to C programmers maintaining long-lived server software. They make it possible to write one native code path that still behaves sensibly on Unix and Windows.

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

APR is one of those quiet packages that makes old-school portable C infrastructure work. It carries ABI concerns, platform feature detection, and build-helper behavior that package maintainers need to get exactly right or large chunks of Apache-linked software fail to compile.

It also marks a packaging boundary: APR is the low-level portability substrate, APR-util adds optional higher-level integrations, and consumers can depend on one or both depending on how much Apache runtime surface they need.

时间线

  • 1990s-2000s: APR emerges from Apache HTTP Server portability work.
  • 2008: APR project website documents APR, APR-util, and APR-iconv as supported subprojects.
  • 2025: APR 1.7.6 listed by Apache as the recommended APR release.

Related projects

  • Apache HTTP Server was the original ecosystem driver for APR.
  • APR-util is the companion utility library above core APR.
  • APR-iconv is the related portable iconv implementation under the APR project.

安全态势

风险级别:绿色

library-like package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • library-like package without higher-risk signals

信号

  • metadata:library-like

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
apr-1-configcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.7.6
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://apr.apache.org/

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息Release/tag comparison is only available for GitHub repositories.https://apr.apache.org/none 置信度

安装元数据

软件包元数据

软件包键brew:apr
版本1.7.6
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/apr
主页https://apr.apache.org/
仓库https://svn.apache.org/repos/asf/apr/apr/trunk
上游文档https://apr.apache.org/compiling_unix.html
许可证Apache-2.0
源码归档https://www.apache.org/dyn/closer.lua?path=apr/apr-1.7.6.tar.bz2
macOS 提供的库libxcrypt
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

libapr1-dev 1.7.5-1

Apache Portable Runtime Library - Development Headers

https://apr.apache.org/

sudo apt install libapr1-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: apr
  • 4 依赖
  • normalized package name match
  • 匹配方式:Apr
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libapr1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libapr1t64 1.7.5-1

Apache Portable Runtime Library

https://apr.apache.org/

sudo apt install libapr1t64
  • Section: libs
  • Architecture: amd64
  • Source Package: apr
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Apr
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libapr1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

apr

nix profile install nixpkgs#apr
  • normalized package name match
  • 匹配方式:Apr
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ap/apr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libapr1-dev 1.7.2-3.1build2

Apache Portable Runtime Library - Development Headers

https://apr.apache.org/

sudo apt install libapr1-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: apr
  • 4 依赖
  • normalized package name match
  • 匹配方式:Apr
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libapr1-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libapr1t64 1.7.2-3.1build2

Apache Portable Runtime Library

https://apr.apache.org/

sudo apt install libapr1t64
  • Section: libs
  • Architecture: amd64
  • Source Package: apr
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Apr
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libapr1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

apr 1.7.6-r0

The Apache Portable Runtime

https://apr.apache.org/

sudo apk add apr
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: apr
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Apr
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: apr from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

apr-dev 1.7.6-r0

The Apache Portable Runtime

https://apr.apache.org/

sudo apk add apr-dev
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: apr
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Apr
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: apr-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

apr 1.7.6-5.fc44

Apache Portable Runtime library

https://apr.apache.org/

sudo dnf install apr
  • License: Apache-2.0 AND (BSD-4-Clause-UC AND ISC AND Zlib AND Caldera-no-preamble)
  • Category: Unspecified
  • Architecture: i686
  • Source Package: apr
  • 4 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Apr
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: apr from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

apr-devel 1.7.6-5.fc44

APR library development kit

https://apr.apache.org/

sudo dnf install apr-devel
  • License: Apache-2.0 AND (BSD-4-Clause-UC AND ISC AND Zlib AND Caldera-no-preamble)
  • Category: Unspecified
  • Architecture: i686
  • Source Package: apr
  • 6 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Apr
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: apr-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

apr 1.7.6-1

The Apache Portable Runtime

https://apr.apache.org/

sudo pacman -S apr
  • License: Apache-2.0
  • Architecture: x86_64
  • 2 依赖
  • normalized package name match
  • 匹配方式:Apr
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: apr from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

apr-devel 1.7.6-1.3

Development files for the Apache Portable Runtime (APR) library

https://apr.apache.org/

sudo zypper install apr-devel
  • License: Apache-2.0
  • Category: Development/Libraries/C and C++
  • Architecture: x86_64
  • Source Package: apr
  • 4 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Apr
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: apr-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libapr1-0 1.7.6-1.3

Apache Portable Runtime (APR) Library

https://apr.apache.org/

sudo zypper install libapr1-0
  • License: Apache-2.0
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: apr
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Apr
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libapr1-0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

apr

sudo port install apr
  • normalized package name match
  • 匹配方式:Apr
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/apr/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment