# 使用 Homebrew, apk, dnf, pacman, zypper, apt 安装 device-mapper

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

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

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

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

  证据: 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
```

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

- pacman (92%):

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

  证据: 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
```

  证据: openSUSE Tumbleweed package metadata: device-mapper from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- Debian apt (92%):

```sh
sudo apt install dmsetup
```

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

## 软件包事实

- **软件包键:** brew:device-mapper
- **软件包管理器:** Homebrew
- **版本:** 2.03.41
- **来源摘要:** Userspace library and tools for logical volume management
- **主页:** <https://sourceware.org/dm>
- **最后更新:** 2026-05-15T13:17:20Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- blkdeactivate (别名)
- dmsetup (别名)
- dmstats (别名)
- dmvdostats (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.03.41
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

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

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.

### 时间线

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

### 来源

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


## 安全说明

没有找到 device-mapper 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 其他软件包管理器记录

- apk - device-mapper - 2.03.35-r4: 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-r4: 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-r4: 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-r4: 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-r4: 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-r4: 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-r4: 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-r4: 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-r4: 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-3.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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.5: normalized package name match | openSUSE Tumbleweed package metadata: device-mapper from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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/


## Combined YAML source

View the package source record on GitHub. [combined/device-mapper.yml](https://github.com/mxcl/pkgdb/blob/main/combined/device-mapper.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
