# Install device-mapper with Homebrew, apk, dnf, pacman, zypper, apt

Userspace library and tools for logical volume management. Version 2.03.41 via Homebrew; verified 2026-05-15.

## Install

```sh
sudo av install brew:device-mapper
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install device-mapper
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add device-mapper
```

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

- dnf (92%):

```sh
sudo dnf install device-mapper
```

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

- pacman (92%):

```sh
sudo pacman -S device-mapper
```

  Evidence: Arch Linux sync databases: device-mapper from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install device-mapper
```

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

- Debian apt (92%):

```sh
sudo apt install dmsetup
```

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

## Package facts

- **Package key:** brew:device-mapper
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/device-mapper>
- **Version:** 2.03.41
- **Source summary:** Userspace library and tools for logical volume management
- **Homepage:** <https://sourceware.org/dm>
- **Repository:** <https://gitlab.com/lvmteam/lvm2>
- **Upstream docs:** <https://sourceware.org/dm>
- **License:** LGPL-2.1-only
- **Source archive:** <https://sourceware.org/pub/lvm2/releases/LVM2.2.03.41.tgz>
- **Last updated:** 2026-05-15T13:17:20Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- blkdeactivate (cli)
- dmsetup (cli)
- dmstats (cli)
- dmvdostats (cli)
- blkdeactivate (alias)
- dmsetup (alias)
- dmstats (alias)
- dmvdostats (alias)

## Dependencies

- libaio

## Build dependencies

- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.03.41
- Package-manager updated: 2026-05-15
- Local data: ok
- Upstream repository: https://sourceware.org/dm
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

device-mapper is the Linux kernel block-device mapping framework and its companion userspace tools and library. In package-manager terms, the Homebrew formula exposes dmsetup, dmstats, and libdevmapper from the LVM2-maintained userspace code rather than a standalone application.

### Project history

The Sourceware device-mapper page describes device-mapper as a Linux kernel component present since kernel 2.6 and required by LVM2 and EVMS. Its userspace code, including dmsetup and libdevmapper, is maintained alongside the LVM2 source package, tying the package's release history to LVM2 rather than to an independent device-mapper release stream.

The LVM2 Sourceware page records that LVM2 needs device-mapper support in the kernel, libdevmapper, and the LVM2 userspace tools. It also documents the source-control migration: the primary copy moved from CVS before June 7, 2012, and the Git repository moved to GitLab on June 30, 2023.

### Adoption history

device-mapper became a baseline Linux storage dependency because it sits underneath logical volume management and related block-device targets. It is packaged across Linux distributions as device-mapper or dmsetup, and Homebrew's formula gives macOS users access to the same userspace tooling for inspection, build, and compatibility workflows.

### How it is used

Package users mostly meet device-mapper through dmsetup and libdevmapper. The tools are used to create, inspect, deactivate, and report mapped block devices, while higher-level systems such as LVM2 build logical-volume workflows on top of the same kernel/userspace interface.

### Why package nerds care

device-mapper matters to package nerds because it is infrastructure plumbing: small command-line tools, a C library, kernel interfaces, and release coupling to LVM2. Its formula is less about a user-facing app and more about making Linux storage primitives available to scripts, tests, ports, and dependent packages.

### Timeline

- Linux 2.6: device-mapper is part of the kernel block-device stack.
- 2012-06-07: LVM2 source history before this date was maintained in CVS.
- 2023-06-30: LVM2 and device-mapper userspace source moved to GitLab.

### Related projects

- LVM2 is the primary related userspace project and maintains the current dmsetup and libdevmapper source.
- EVMS and the original LVM are historical related projects named by the Sourceware device-mapper page.

### Sources

- <https://sourceware.org/dm/>
- <https://sourceware.org/lvm2/>


## Security Notes

No matching local secret-handling manifest was found for device-mapper. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** device-mapper
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** linux
- **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

- apk - device-mapper - 2.03.35-r2: normalized package name match | Alpine Linux edge package indexes: device-mapper from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Device mapper userspace library and tools from LVM2 | https://sourceware.org/lvm2/
- apk - device-mapper-dev - 2.03.35-r2: normalized package name match | Alpine Linux edge package indexes: device-mapper-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Device mapper userspace library and tools from LVM2 (development files) | https://sourceware.org/lvm2/
- apk - device-mapper-dmeventd - 2.03.35-r2: normalized package name match | Alpine Linux edge package indexes: device-mapper-dmeventd from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Device-mapper event daemon | https://sourceware.org/lvm2/
- apk - device-mapper-dmeventd-openrc - 2.03.35-r2: normalized package name match | Alpine Linux edge package indexes: device-mapper-dmeventd-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Device-mapper event daemon (OpenRC init scripts) | https://sourceware.org/lvm2/
- apk - device-mapper-doc - 2.03.35-r2: normalized package name match | Alpine Linux edge package indexes: device-mapper-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Device mapper userspace library and tools from LVM2 (documentation) | https://sourceware.org/lvm2/
- apk - device-mapper-event-libs - 2.03.35-r2: normalized package name match | Alpine Linux edge package indexes: device-mapper-event-libs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Device-mapper event daemon shared library | https://sourceware.org/lvm2/
- apk - device-mapper-libs - 2.03.35-r2: normalized package name match | Alpine Linux edge package indexes: device-mapper-libs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Device-mapper shared library | https://sourceware.org/lvm2/
- apk - device-mapper-static - 2.03.35-r2: normalized package name match | Alpine Linux edge package indexes: device-mapper-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Device-mapper static libraries and binaries | https://sourceware.org/lvm2/
- apk - device-mapper-udev - 2.03.35-r2: normalized package name match | Alpine Linux edge package indexes: device-mapper-udev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Device mapper udev rules | https://sourceware.org/lvm2/
- dnf - device-mapper - 1.02.215-2.fc45: normalized package name match | Fedora Rawhide package metadata: device-mapper from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Device mapper utility | https://www.sourceware.org/dm/
- pacman - device-mapper - 2.03.41-1: normalized package name match | Arch Linux sync databases: device-mapper from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz | Device mapper userspace library and tools | http://sourceware.org/dm/
- zypper - device-mapper - 2.03.38_1.02.212-2.3: normalized package name match | openSUSE Tumbleweed package metadata: device-mapper from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Device Mapper Tools | https://www.sourceware.org/lvm2/
- Debian apt - dmsetup - 2:1.02.205-2: installed executable or alias match | Debian stable package indexes: dmsetup from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Linux Kernel Device Mapper userspace library | https://sourceware.org/lvm2/
- Ubuntu apt - dmsetup - 2:1.02.185-3ubuntu3: installed executable or alias match | Ubuntu 24.04 LTS package indexes: dmsetup from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Linux Kernel Device Mapper userspace library | https://sourceware.org/lvm2/


## 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.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [di](https://www.automicvault.com/pkg/brew/di/) - Shares av.db curated category or tags: cli, storage, system.
- [disktype](https://www.automicvault.com/pkg/brew/disktype/) - Shares av.db curated category or tags: cli, storage, system.
- [fio](https://www.automicvault.com/pkg/brew/fio/) - Shares av.db curated category or tags: cli, storage, system.
- [gdu](https://www.automicvault.com/pkg/brew/gdu/) - Shares av.db curated category or tags: cli, storage, system.
- [gptfdisk](https://www.automicvault.com/pkg/brew/gptfdisk/) - Shares av.db curated category or tags: cli, storage, system.
- [gsmartcontrol](https://www.automicvault.com/pkg/brew/gsmartcontrol/) - Shares av.db curated category or tags: cli, storage, system.
- [isa-l](https://www.automicvault.com/pkg/brew/isa-l/) - Shares av.db curated category or tags: cli, storage, system.
- [ncdu](https://www.automicvault.com/pkg/brew/ncdu/) - Shares av.db curated category or tags: cli, storage, system.
- [procps](https://www.automicvault.com/pkg/brew/procps/) - Local package facts share a topical domain. Shared terms: cli, linux, management, system.
- [cahute](https://www.automicvault.com/pkg/brew/cahute/) - Local package facts share a topical domain. Shared terms: cli, device, system.
- [duplicity](https://www.automicvault.com/pkg/brew/duplicity/) - Local package facts share a topical domain. Shared terms: cli, storage, system.

## Combined YAML source

View the package source record on GitHub. [combined/device-mapper.yml](https://github.com/automic-vault/db/blob/main/combined/device-mapper.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
