# Install apr with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Apache Portable Runtime library. Version 1.7.6 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install apr
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install apr
```

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

### Linux

- apk (92%):

```sh
sudo apk add apr
```

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

- Debian apt (92%):

```sh
sudo apt install libapr1-dev
```

  Evidence: Debian stable package indexes: libapr1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install apr
```

  Evidence: Fedora Rawhide package metadata: apr from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#apr
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ap/apr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

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

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

- zypper (92%):

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

  Evidence: openSUSE Tumbleweed package metadata: apr-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:apr
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/apr>
- **Version:** 1.7.6
- **Source summary:** Apache Portable Runtime library
- **Homepage:** <https://apr.apache.org/>
- **Repository:** <https://svn.apache.org/repos/asf/apr/apr/trunk>
- **Upstream docs:** <https://apr.apache.org/compiling_unix.html>
- **License:** Apache-2.0
- **Source archive:** <https://www.apache.org/dyn/closer.lua?path=apr/apr-1.7.6.tar.bz2>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- apr-1-config (cli)
- apr-1-config (alias)

## Uses from macOS

- libxcrypt

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.7.6
- Local data: ok
- Upstream repository: https://apr.apache.org/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **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:** stable

## Other Package-Manager Records

- Debian apt - libapr1-dev - 1.7.5-1: normalized package name match | Debian stable package indexes: libapr1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Apache Portable Runtime Library - Development Headers | https://apr.apache.org/
- Debian apt - libapr1t64 - 1.7.5-1: normalized package name match | Debian stable package indexes: libapr1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Apache Portable Runtime Library | https://apr.apache.org/
- Nix - apr: normalized package name match | nixpkgs package indexes: pkgs/by-name/ap/apr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libapr1-dev - 1.7.2-3.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libapr1-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Apache Portable Runtime Library - Development Headers | https://apr.apache.org/
- Ubuntu apt - libapr1t64 - 1.7.2-3.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libapr1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Apache Portable Runtime Library | https://apr.apache.org/
- apk - apr - 1.7.6-r0: normalized package name match | Alpine Linux edge package indexes: apr from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The Apache Portable Runtime | https://apr.apache.org/
- apk - apr-dev - 1.7.6-r0: normalized package name match | Alpine Linux edge package indexes: apr-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The Apache Portable Runtime | https://apr.apache.org/
- dnf - apr - 1.7.6-5.fc44: normalized package name match | Fedora Rawhide package metadata: apr from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Apache Portable Runtime library | https://apr.apache.org/
- dnf - apr-devel - 1.7.6-5.fc44: normalized package name match | 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 | APR library development kit | https://apr.apache.org/
- pacman - apr - 1.7.6-1: normalized package name match | Arch Linux sync databases: apr from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | The Apache Portable Runtime | https://apr.apache.org/
- zypper - apr-devel - 1.7.6-1.3: normalized package name match | openSUSE Tumbleweed package metadata: apr-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for the Apache Portable Runtime (APR) library | https://apr.apache.org/
- zypper - libapr1-0 - 1.7.6-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libapr1-0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Apache Portable Runtime (APR) Library | https://apr.apache.org/
- MacPorts - apr: normalized package name match | MacPorts ports tree: devel/apr/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [activemq-cpp](https://www.automicvault.com/pkg/brew/activemq-cpp/) - Popular package that depends on this formula.
- [apr-util](https://www.automicvault.com/pkg/brew/apr-util/) - Popular package that depends on this formula.
- [httpd](https://www.automicvault.com/pkg/brew/httpd/) - Popular package that depends on this formula.
- [openmama](https://www.automicvault.com/pkg/brew/openmama/) - Popular package that depends on this formula.
- [passenger](https://www.automicvault.com/pkg/brew/passenger/) - Popular package that depends on this formula.
- [nspr](https://www.automicvault.com/pkg/brew/nspr/) - Shares av.db curated category or tags: cli, developer-tools, library, portable-runtime.
- [ada-url](https://www.automicvault.com/pkg/brew/ada-url/) - Shares av.db curated category or tags: cli, developer-tools, library.
- [ancient](https://www.automicvault.com/pkg/brew/ancient/) - Shares av.db curated category or tags: cli, developer-tools, library.
- [ant](https://www.automicvault.com/pkg/brew/ant/) - Shares av.db curated category or tags: apache, cli, developer-tools.
- [apache-opennlp](https://www.automicvault.com/pkg/brew/apache-opennlp/) - Shares av.db curated category or tags: apache, cli, developer-tools.
- [brew-php-switcher](https://www.automicvault.com/pkg/brew/brew-php-switcher/) - Shares av.db curated category or tags: apache, cli, developer-tools.
- [bsdconv](https://www.automicvault.com/pkg/brew/bsdconv/) - Shares av.db curated category or tags: cli, developer-tools, library.
- [subversion](https://www.automicvault.com/pkg/brew/subversion/) - Local package facts share a topical domain. Shared terms: apache, apr, cli, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/apr.yml](https://github.com/automic-vault/db/blob/main/combined/apr.yml)


## Sources

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