# 使用 Homebrew, apk, dnf, MacPorts, Nix, zypper 安装 xprop

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

## 安装

```sh
sudo av install brew:xprop
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install xprop
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install xprop
```

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

### Linux

- apk (92%):

```sh
sudo apk add xprop
```

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

- dnf (92%):

```sh
sudo dnf install xprop
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#xprop
```

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

- zypper (92%):

```sh
sudo zypper install xprop
```

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

## 软件包事实

- **软件包键:** brew:xprop
- **软件包管理器:** Homebrew
- **版本:** 1.2.8
- **来源摘要:** Property displayer for X
- **主页:** <https://gitlab.freedesktop.org/xorg/app/xprop>
- **最后更新:** 2026-07-04T13:13:44+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- xprop (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

xprop is the X.Org command-line utility for inspecting and changing X server window and font properties. It is one of the small diagnostic tools that makes X11's atom-and-property model visible to users, window-manager authors, packagers, and automation scripts.

### 项目历史

The current man page carries Open Group copyrights from 1988 and 1998 and an XFree86 copyright from 2000, placing xprop in the older X Consortium/Open Group/XFree86 lineage before the modern modular X.Org release process. It later became one of the separately shipped X.Org app modules.

As a modular X.Org utility, xprop is intentionally narrow. The upstream README describes it simply as a command-line tool to display and/or set window and font properties of an X server, with development now hosted in the freedesktop.org GitLab repository and questions routed to the Xorg mailing list.

The release archive shows xprop as part of the X.Org individual app set from the 2006 modular era onward. Newer releases still happen because small fixes matter: the 1.2.5 README notes a -help command-line handler and icon-image display improvements, and 1.2.8 was archived in 2024.

### 采用历史

xprop spread with the X11 desktop stack rather than through a separate hype cycle. It is available wherever X.Org utilities are packaged because it is the standard way to inspect WM_CLASS, WM_NAME, EWMH _NET_* values, root-window properties, font properties, and arbitrary atoms from a shell.

Its adoption persisted because X11 properties are the glue between clients, window managers, panels, launchers, automation scripts, and debugging sessions. Even as Wayland reduces the direct applicability of X11 tooling, xprop remains part of Xwayland and legacy-X troubleshooting.

### 使用方式

The classic workflow is to run xprop and click a window, or pass -id, -name, -root, or -font to choose a target. With no explicit property list, it prints all properties on the selected object; with property names, it prints just those values.

More advanced use includes -set and -remove for changing properties, -spy for watching property-change events, and -f or format files for controlling how property values are displayed. In package-nerd practice, it is often paired with xwininfo, wmctrl, xdotool, window-manager rule systems, and bug reports about X11 clients.

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

xprop is tiny but culturally important: it exposes one of X11's core mechanisms without requiring a debugger or Xlib program. A lot of Linux desktop lore, from fixing application window classes to writing window-manager rules, starts with xprop output.

For package indexes, xprop is the kind of utility that justifies splitting old X.Org trees into many small packages. Users may install it alone to debug GUI behavior, even if they do not think of themselves as installing the X.Org app suite.

### 时间线

- 1988 and 1998: Open Group copyright dates appear in the current xprop man page.
- 2000: XFree86 copyright appears in the current xprop man page.
- 2006-01-18: X.Org archived xprop 1.0.1 in the individual app release area.
- 2020-11-20: X.Org archived xprop 1.2.5, whose README called out -help handling and icon-image display improvements.
- 2024-11-14: X.Org archived xprop 1.2.8.

### Related projects

- xwininfo: often used with xprop when identifying X11 windows by id.
- ICCCM and EWMH: specifications that define many of the properties users inspect with xprop.
- wmctrl, xdotool, and window-manager rule systems: practical neighbors in X11 automation and debugging.

### 来源

- <https://gitlab.freedesktop.org/xorg/app/xprop>
- <https://gitlab.freedesktop.org/xorg/app/xprop/-/blob/master/man/xprop.man>
- <https://gitlab.freedesktop.org/xorg/app/xprop/-/raw/master/README.md>
- <https://tronche.com/gui/x/icccm/sec-4.html>
- <https://www.x.org/releases/X11R7.6-RC1/doc/man/man1/xprop.1.xhtml>
- <https://xorg.freedesktop.org/archive/individual/app/>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - xprop: normalized package name match | nixpkgs package indexes: pkgs/by-name/xp/xprop/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - xprop - 1.2.8-r0: normalized package name match | Alpine Linux edge package indexes: xprop from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Property displayer for X | https://cgit.freedesktop.org/xorg/app/xprop
- apk - xprop-doc - 1.2.8-r0: normalized package name match | Alpine Linux edge package indexes: xprop-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Property displayer for X (documentation) | https://cgit.freedesktop.org/xorg/app/xprop
- dnf - xprop - 1.2.8-6.fc45: normalized package name match | Fedora Rawhide package metadata: xprop from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | X property display utility | https://www.x.org
- zypper - xprop - 1.2.8-1.7: normalized package name match | openSUSE Tumbleweed package metadata: xprop from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Property displayer for X | https://xorg.freedesktop.org/
- MacPorts - xprop: normalized package name match | MacPorts ports tree: x11/xprop/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/xprop.yml](https://github.com/mxcl/pkgdb/blob/main/combined/xprop.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
