# 使用 Homebrew, apk, apt, Nix 安装 dwm

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

## 安装

```sh
sudo av install brew:dwm
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dwm
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add dwm
```

  证据: Alpine Linux edge package indexes: dwm from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install dwm
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#dwm
```

  证据: nixpkgs package indexes: pkgs/by-name/dw/dwm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:dwm
- **软件包管理器:** Homebrew
- **版本:** 6.8
- **来源摘要:** Dynamic window manager
- **主页:** <https://dwm.suckless.org/>
- **最后更新:** 2026-06-25T13:37:39+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dwm (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

dwm is the suckless dynamic window manager for X. The official page describes tiled, monocle, and floating layouts, tag-based window grouping, a small status bar, and a design that is intentionally smaller, faster, and simpler than predecessors such as ion, larswm, and wmii.

### 项目历史

The official git refs show dwm 0.1 tagged on 2006-07-14 by Anselm R. Garbe, followed by rapid 0.x and 1.x releases in 2006. By the 4.x and 5.x series it had settled into the small-C-source, edit-and-rebuild configuration style that became central to the suckless identity.

The official customisation page explains the distinctive model: dwm is configured by editing config.h, a C header included by dwm.c, and config.mk for build/install settings. The main page argues that source-code configuration is fast and secure because dwm does not process unknown runtime configuration input apart from window titles and status text.

### 采用历史

dwm's own site says binary packages are somewhat beside the point because users are expected to customize source, while also acknowledging that some distributions provide packages. The batch input lists apk, Homebrew, Debian, Nix, and Ubuntu, showing the tension that makes dwm famous in packaging culture: it is widely packaged even though upstream thinks the most authentic install is local source customization.

### 使用方式

Users run dwm as an X window manager, arrange clients dynamically across tiled, monocle, and floating layouts, tag windows instead of placing them into conventional workspaces, and feed status text through the root window name. Customization usually means editing config.h, applying patches from the official patch collection, rebuilding, and carrying the local diff forward.

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

dwm is one of the canonical minimalist Unix desktop packages. It is tiny, patch-oriented, hostile to sprawling configuration layers, and influential far beyond its source size. For package nerds it is a touchstone in debates about source-as-config, downstream patch stacks, reproducible personal builds, and how far a package manager should go when upstream expects users to edit C.

### 时间线

- 2006: dwm 0.1 tagged in the official git repository.
- 2007: 4.x releases continue rapid development of the early design.
- 2011: dwm 6.0 tagged.
- 2019: dwm 6.2 tagged after a slower mature-release cadence.
- 2026: dwm 6.8 released on 2026-01-30; official refs show master activity in March 2026.

### Related projects

- The official page places dwm against ion, larswm, and wmii, points users to dmenu, and lists related or influenced projects including awesome, dvtm, dwl, i3, qtile, scrotwm, xmonad, and several dwm forks or ports.

### 来源

- <https://dwm.suckless.org/>
- <https://dwm.suckless.org/customisation/>
- <https://git.suckless.org/dwm/refs.html>
- <https://git.suckless.org/dwm>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- 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: config.h
## 其他软件包管理器记录

- Debian apt - dwm - 6.5-1: normalized package name match | Debian stable package indexes: dwm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | dynamic window manager | http://dwm.suckless.org/
- Nix - dwm: normalized package name match | nixpkgs package indexes: pkgs/by-name/dw/dwm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dwm - 6.4-1: normalized package name match | Ubuntu 24.04 LTS package indexes: dwm from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | dynamic window manager | https://dwm.suckless.org/
- apk - dwm - 6.8-r0: normalized package name match | Alpine Linux edge package indexes: dwm from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | dwm - dynamic window manager | https://dwm.suckless.org
- apk - dwm-doc - 6.8-r0: normalized package name match | Alpine Linux edge package indexes: dwm-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | dwm - dynamic window manager (documentation) | https://dwm.suckless.org


## Combined YAML source

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


## 来源

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