# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 wmctrl

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

## 安装

```sh
sudo av install brew:wmctrl
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install wmctrl
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install wmctrl
```

  证据: MacPorts ports tree: x11/wmctrl/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add wmctrl
```

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

- Debian apt (92%):

```sh
sudo apt install wmctrl
```

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

- dnf (92%):

```sh
sudo dnf install wmctrl
```

  证据: Fedora Rawhide package metadata: wmctrl 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#wmctrl
```

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

- pacman (92%):

```sh
sudo pacman -S wmctrl
```

  证据: Arch Linux sync databases: wmctrl from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install wmctrl
```

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

## 软件包事实

- **软件包键:** brew:wmctrl
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/wmctrl>
- **版本:** 1.07
- **来源摘要:** UNIX/Linux command-line tool to interact with an EWMH/NetWM
- **主页:** <https://packages.debian.org/sid/wmctrl>
- **上游文档:** <http://tripie.sweb.cz/utils/wmctrl>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://deb.debian.org/debian/pool/main/w/wmctrl/wmctrl_1.07.orig.tar.gz>
- **最后更新:** 2026-06-19T12:33:04-07:00
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- wmctrl (cli)
- wmctrl (别名)

## 依赖

- gettext
- glib
- libice
- libsm
- libx11
- libxmu

## 构建依赖

- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.07
- 管理器更新时间: 2026-06-19
- 本地数据: OK
- 上游仓库: https://packages.debian.org/sid/wmctrl
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

wmctrl is a small X11 command-line utility for querying and controlling window managers that implement the Extended Window Manager Hints, also known as EWMH or NetWM. It is an old-fashioned Unix desktop automation tool: scriptable, tiny, and useful precisely because it exposes window-manager operations outside the graphical shell.

### 项目历史

The upstream ChangeLog, preserved in the Conservatory archive, records an initial release by Tomas Styblo on 15 September 2003 and a compact burst of releases through 1.07 on 3 January 2005. The original README identifies Tomas Styblo as author and maintainer, gives the upstream homepage, and states that wmctrl is based on the freedesktop.org EWMH specification.

The Conservatory archive exists because wmctrl had no public upstream version-control repository. Its maintainers imported the upstream tarball history into Git in 2018 and noted that the latest upstream release was still the January 2005 1.07 release.

### 采用历史

wmctrl persisted through distribution packaging rather than active upstream development. Debian, Fedora, Arch, Guix, RPM-based distributions, and others have carried version 1.07 or downstream builds because the tool remains handy for X11 desktops, scripts, hotkeys, test automation, and glue code around lightweight window managers.

### 使用方式

Users run wmctrl to list windows and desktops, activate or close a window, move or resize windows, change desktop geometry, switch desktops, or set EWMH states such as fullscreen, maximized, sticky, or always-on-top. Its usefulness depends on the window manager implementing the EWMH/NetWM protocol, which standardizes interactions between window managers, pagers, taskbars, applications, and desktop utilities.

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

wmctrl is package-nerd significant because it is the kind of tiny, stable X11 utility that survives for decades with little upstream activity. It codifies a desktop protocol into one scriptable binary and is still pulled into environments where shell scripts need to reason about graphical windows.

### 时间线

- 2003: Initial wmctrl release recorded in the upstream ChangeLog.
- 2005: wmctrl 1.07 released, with additions such as WM_CLASS support, active-window addressing, 64-bit support, and a man page recorded around the same release period.
- 2011: EWMH 1.5 published by freedesktop.org, documenting the protocol family wmctrl targets.
- 2018: Conservatory imported the released wmctrl tarball history into a Git archive because no public upstream VCS was available.

### Related projects

- EWMH/NetWM is the freedesktop.org specification that defines the window-manager properties and client messages wmctrl manipulates.
- Zenity is mentioned in the original README as a complementary tool for combining GUI interactions with shell scripts.

### 来源

- <https://archlinux.org/packages/extra/x86_64/wmctrl/>
- <https://github.com/Conservatory/wmctrl>
- <https://github.com/Conservatory/wmctrl/blob/master/ChangeLog>
- <https://packages.debian.org/sid/wmctrl>
- <https://packages.fedoraproject.org/pkgs/wmctrl/wmctrl/fedora-39.html>
- <https://specifications.freedesktop.org/wm-spec/latest/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** wmctrl
- **Version Scheme:** 0
- **Revision:** 2
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - wmctrl - 1.07+git20240228.1105759-1: normalized package name match | Debian stable package indexes: wmctrl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | control an EWMH/NetWM compatible X Window Manager | https://github.com/Conservatory/wmctrl
- Nix - wmctrl: normalized package name match | nixpkgs package indexes: pkgs/by-name/wm/wmctrl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - wmctrl - 1.07-7ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: wmctrl from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | control an EWMH/NetWM compatible X Window Manager | http://tripie.sweb.cz/utils/wmctrl/
- apk - wmctrl - 1.07-r1: normalized package name match | Alpine Linux edge package indexes: wmctrl from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | wmctrl is a UNIX/Linux command line tool to interact with an EWMH/NetWM compatible X Window Manager | https://sites.google.com/site/tstyblo/wmctrl
- apk - wmctrl-doc - 1.07-r1: normalized package name match | Alpine Linux edge package indexes: wmctrl-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | wmctrl is a UNIX/Linux command line tool to interact with an EWMH/NetWM compatible X Window Manager (documentation) | https://sites.google.com/site/tstyblo/wmctrl
- dnf - wmctrl - 1.07-41.fc44: normalized package name match | Fedora Rawhide package metadata: wmctrl from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Command line tool to interact with an X Window Manager | http://sweb.cz/tripie/utils/wmctrl
- pacman - wmctrl - 1.07-6: normalized package name match | Arch Linux sync databases: wmctrl from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Control your EWMH compliant window manager from command line | http://tripie.sweb.cz/utils/wmctrl/
- zypper - wmctrl - 1.07-152.6: normalized package name match | openSUSE Tumbleweed package metadata: wmctrl from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Command line tool to interact with an EWMH/NetWM compatible X Window Manager | http://sweb.cz/tripie/utils/wmctrl/
- MacPorts - wmctrl: normalized package name match | MacPorts ports tree: x11/wmctrl/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Matched curated package taxonomy and local package facts.
- [gettext](https://www.automicvault.com/zh-hans/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [glib](https://www.automicvault.com/zh-hans/pkg/brew/glib/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [paneru](https://www.automicvault.com/zh-hans/pkg/brew/paneru/) - Shares av.db curated category or tags: cli, system, window-management, window-manager.
- [quartz-wm](https://www.automicvault.com/zh-hans/pkg/brew/quartz-wm/) - Shares av.db curated category or tags: cli, system, window-manager, x11.
- [twm](https://www.automicvault.com/zh-hans/pkg/brew/twm/) - Shares av.db curated category or tags: cli, system, window-manager, x11.
- [bdftopcf](https://www.automicvault.com/zh-hans/pkg/brew/bdftopcf/) - Shares av.db curated category or tags: cli, system, x11.
- [libxcvt](https://www.automicvault.com/zh-hans/pkg/brew/libxcvt/) - Shares av.db curated category or tags: cli, system, x11.
- [libxkbcommon](https://www.automicvault.com/zh-hans/pkg/brew/libxkbcommon/) - Shares av.db curated category or tags: cli, system, x11.
- [libxpm](https://www.automicvault.com/zh-hans/pkg/brew/libxpm/) - Shares av.db curated category or tags: cli, system, x11.
- [mkfontscale](https://www.automicvault.com/zh-hans/pkg/brew/mkfontscale/) - Shares av.db curated category or tags: cli, system, x11.
- [openmotif](https://www.automicvault.com/zh-hans/pkg/brew/openmotif/) - Local package facts share a topical domain. Shared terms: cli, libice, libsm, libx11, libxmu.

## Combined YAML source

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


## 来源

- 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
