macOS
brew install aprlocal Homebrew formula metadata
安装
brew install aprlocal Homebrew formula metadata
sudo apk add aprAlpine Linux edge package indexes · apr · 来源: dl-cdn.alpinelinux.org
sudo dnf install aprFedora Rawhide package metadata · apr · 来源: dl.fedoraproject.org
nix profile install nixpkgs#aprnixpkgs package indexes · pkgs/by-name/ap/apr/package.nix · 来源: api.github.com
sudo pacman -S aprArch Linux sync databases · apr · 来源: geo.mirror.pkgbuild.com
sudo apt install libapr1-devDebian stable package indexes · libapr1-dev · 来源: deb.debian.org
sudo zypper install apr-developenSUSE Tumbleweed package metadata · apr-devel · 来源: download.opensuse.org
概览
Apache Portable Runtime library
历史
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.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
apr-1-config | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | 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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | apr |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libapr1-dev 1.7.5-1
Apache Portable Runtime Library - Development Headers
sudo apt install libapr1-devlibapr1t64 1.7.5-1
Apache Portable Runtime Library
sudo apt install libapr1t64apr
nix profile install nixpkgs#aprlibapr1-dev 1.7.2-3.1build2
Apache Portable Runtime Library - Development Headers
sudo apt install libapr1-devlibapr1t64 1.7.2-3.1build2
Apache Portable Runtime Library
sudo apt install libapr1t64apr 1.7.6-r0
The Apache Portable Runtime
sudo apk add aprapr-dev 1.7.6-r0
The Apache Portable Runtime
sudo apk add apr-devapr 1.7.6-5.fc44
Apache Portable Runtime library
sudo dnf install aprapr-devel 1.7.6-5.fc44
APR library development kit
sudo dnf install apr-develapr 1.7.6-1
The Apache Portable Runtime
sudo pacman -S aprapr-devel 1.7.6-1.3
Development files for the Apache Portable Runtime (APR) library
sudo zypper install apr-devellibapr1-0 1.7.6-1.3
Apache Portable Runtime (APR) Library
sudo zypper install libapr1-0apr
sudo port install apr来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.