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

Implementation of malloc emphasizing fragmentation avoidance. Version 5.3.0 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:jemalloc
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install jemalloc
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install jemalloc
```

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

### Linux

- apk (92%):

```sh
sudo apk add jemalloc
```

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

- Debian apt (92%):

```sh
sudo apt install libjemalloc-dev
```

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

- dnf (92%):

```sh
sudo dnf install jemalloc
```

  Evidence: Fedora Rawhide package metadata: jemalloc 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#jemalloc
```

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

- pacman (92%):

```sh
sudo pacman -S jemalloc
```

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

- zypper (92%):

```sh
sudo zypper install jemalloc
```

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

## Package facts

- **Package key:** brew:jemalloc
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/jemalloc>
- **Version:** 5.3.0
- **Source summary:** Implementation of malloc emphasizing fragmentation avoidance
- **Homepage:** <https://jemalloc.net/>
- **Repository:** <https://github.com/jemalloc/jemalloc>
- **Upstream docs:** <https://github.com/jemalloc/jemalloc/wiki>
- **License:** BSD-2-Clause
- **Source archive:** <https://github.com/jemalloc/jemalloc/releases/download/5.3.0/jemalloc-5.3.0.tar.bz2>
- **Last updated:** 2026-06-22T14:03:49-07:00
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- jemalloc-config (cli)
- jemalloc.sh (cli)
- jeprof (cli)
- jemalloc-config (alias)
- jemalloc.sh (alias)
- jeprof (alias)

## 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-09
- Package-manager version: 5.3.0
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/jemalloc/jemalloc
- info: No cached GitHub release or tag data was available.
## Project history and usage

jemalloc is a general-purpose malloc implementation known in package-manager catalogs because it can be installed as a system allocator, linked into performance-sensitive programs, or preloaded for applications that benefit from predictable allocation behavior.

### Project history

The project describes itself as emphasizing fragmentation avoidance and scalable concurrency. Its public history begins with use as the FreeBSD libc allocator in 2005, then broadens in 2010 with developer-facing facilities such as heap profiling and monitoring or tuning hooks.

The project site points to GitHub as the primary repository and treats the manual page and wiki as the two main documentation surfaces. Its branch layout has kept stable release tracking and older stable lines visible, which matters for downstream packaging because allocators are low-level dependencies with conservative upgrade habits.

### Adoption history

jemalloc moved from a FreeBSD allocator into a portable package used by applications that care about allocator behavior under concurrency and fragmentation pressure. Its adoption pattern is therefore less like a user-facing CLI and more like a selectable runtime component for databases, language runtimes, services, and performance investigations.

### How it is used

Package users commonly install the library and development files, link programs against it, or use loader mechanisms to substitute it for the platform allocator. The bundled tools and scripts such as jemalloc-config, jemalloc.sh, and jeprof make the Homebrew formula useful both for building software and for profiling heap behavior.

### Why package nerds care

jemalloc is package-nerd material because it sits below ordinary application code: swapping an allocator can change memory fragmentation, latency, profiling visibility, and production stability without changing the application source. Its presence across many package managers makes allocator choice a reproducible dependency rather than a local build trick.

### Timeline

- 2005: jemalloc first came into use as the FreeBSD libc allocator.
- 2010: development broadened to include heap profiling plus monitoring and tuning hooks.
- 2013: the public GitHub repository was created for the project.
- 2016: the project retired legacy mailing lists in favor of GitHub-based project activity.

### Related projects

- FreeBSD remains historically important because jemalloc entered production use through its libc allocator.
- jeprof is the related profiling utility shipped with the package for heap-profile analysis.
- Other allocator projects such as system malloc implementations and alternative malloc libraries are the natural comparison set, but jemalloc's packaging role is strongest where a program deliberately opts into its allocation behavior.

### Sources

- <https://github.com/jemalloc/jemalloc>
- <https://github.com/jemalloc/jemalloc/wiki>
- <https://jemalloc.net/>
- <https://jemalloc.net/jemalloc.3.html>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## 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: /etc/malloc.conf
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** jemalloc
- **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

## Other Package-Manager Records

- Debian apt - libjemalloc-dev - 5.3.0-3: normalized package name match | Debian stable package indexes: libjemalloc-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files and documentation for jemalloc | https://jemalloc.net/
- Debian apt - libjemalloc2 - 5.3.0-3: normalized package name match | Debian stable package indexes: libjemalloc2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | general-purpose scalable concurrent malloc(3) implementation | https://jemalloc.net/
- Nix - jemalloc: normalized package name match | nixpkgs package indexes: pkgs/by-name/je/jemalloc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libjemalloc-dev - 5.3.0-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libjemalloc-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | development files and documentation for jemalloc | https://jemalloc.net/
- Ubuntu apt - libjemalloc2 - 5.3.0-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libjemalloc2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | general-purpose scalable concurrent malloc(3) implementation | https://jemalloc.net/
- apk - jemalloc - 5.3.0-r6: normalized package name match | Alpine Linux edge package indexes: jemalloc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | general purpose malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency support | http://jemalloc.net
- apk - jemalloc-dev - 5.3.0-r6: normalized package name match | Alpine Linux edge package indexes: jemalloc-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | general purpose malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency support (development files) | http://jemalloc.net
- apk - jemalloc-doc - 5.3.0-r6: normalized package name match | Alpine Linux edge package indexes: jemalloc-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | general purpose malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency support (documentation) | http://jemalloc.net
- apk - jemalloc-static - 5.3.0-r6: normalized package name match | Alpine Linux edge package indexes: jemalloc-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | general purpose malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency support (static library) | http://jemalloc.net
- dnf - jemalloc - 5.3.0-14.fc44: normalized package name match | Fedora Rawhide package metadata: jemalloc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | General-purpose scalable concurrent malloc implementation | https://jemalloc.net/
- dnf - jemalloc-devel - 5.3.0-14.fc44: normalized package name match | Fedora Rawhide package metadata: jemalloc-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for jemalloc | https://jemalloc.net/
- pacman - jemalloc - 1:5.3.1-2: normalized package name match | Arch Linux sync databases: jemalloc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | General-purpose scalable concurrent malloc implementation | https://jemalloc.net/
- zypper - jemalloc - 5.3.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: jemalloc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | General-purpose scalable concurrent malloc implementation | http://jemalloc.net/
- zypper - jemalloc-devel - 5.3.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: jemalloc-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for jemalloc | http://jemalloc.net/
- zypper - libjemalloc2 - 5.3.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: libjemalloc2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | General-purpose scalable concurrent malloc implementation | http://jemalloc.net/
- MacPorts - jemalloc: normalized package name match | MacPorts ports tree: devel/jemalloc/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.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Matched curated package taxonomy and local package facts.
- [bind](https://www.automicvault.com/pkg/brew/bind/) - Popular package that depends on this formula.
- [chapel](https://www.automicvault.com/pkg/brew/chapel/) - Popular package that depends on this formula.
- [nghttp2](https://www.automicvault.com/pkg/brew/nghttp2/) - Popular package that depends on this formula.
- [openvdb](https://www.automicvault.com/pkg/brew/openvdb/) - Popular package that depends on this formula.
- [snort](https://www.automicvault.com/pkg/brew/snort/) - Popular package that depends on this formula.
- [libcpucycles](https://www.automicvault.com/pkg/brew/libcpucycles/) - Shares av.db curated category or tags: c, cli, performance, system.
- [libmps](https://www.automicvault.com/pkg/brew/libmps/) - Shares av.db curated category or tags: cli, memory-management, system.
- [asitop](https://www.automicvault.com/pkg/brew/asitop/) - Shares av.db curated category or tags: cli, performance, system.
- [ccd2iso](https://www.automicvault.com/pkg/brew/ccd2iso/) - Shares av.db curated category or tags: c, cli, system.
- [chmlib](https://www.automicvault.com/pkg/brew/chmlib/) - Shares av.db curated category or tags: c, cli, system.
- [clzip](https://www.automicvault.com/pkg/brew/clzip/) - Shares av.db curated category or tags: c, cli, system.
- [fastfetch](https://www.automicvault.com/pkg/brew/fastfetch/) - Shares av.db curated category or tags: c, cli, system.
- [fio](https://www.automicvault.com/pkg/brew/fio/) - Shares av.db curated category or tags: cli, performance, system.
- [mbw](https://www.automicvault.com/pkg/brew/mbw/) - Local package facts share a topical domain. Shared terms: cli, memory, performance, system.
- [numactl](https://www.automicvault.com/pkg/brew/numactl/) - Local package facts share a topical domain. Shared terms: cli, memory, performance, system.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
