# Install xdpyinfo with Homebrew, apk, dnf, MacPorts, Nix, zypper

X.Org: Utility for displaying information about an X server. Version 1.4.0 via Homebrew; verified 2026-07-04.

## Install

```sh
sudo av install brew:xdpyinfo
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install xdpyinfo
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install xdpyinfo
```

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

### Linux

- apk (92%):

```sh
sudo apk add xdpyinfo
```

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

- dnf (92%):

```sh
sudo dnf install xdpyinfo
```

  Evidence: Fedora Rawhide package metadata: xdpyinfo 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#xdpyinfo
```

  Evidence: nixpkgs package indexes: pkgs/by-name/xd/xdpyinfo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install xdpyinfo
```

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

## Package facts

- **Package key:** brew:xdpyinfo
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/xdpyinfo>
- **Version:** 1.4.0
- **Source summary:** X.Org: Utility for displaying information about an X server
- **Homepage:** <https://www.x.org/>
- **Repository:** <https://gitlab.freedesktop.org/xorg/app/xdpyinfo>
- **Upstream docs:** <https://www.x.org/archive/X11R7.0/doc/html/xdpyinfo.1.html>
- **License:** MIT
- **Source archive:** <https://xorg.freedesktop.org/archive/individual/app/xdpyinfo-1.4.0.tar.xz>
- **Last updated:** 2026-07-04T13:13:44+09:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- xdpyinfo (cli)
- xdpyinfo (alias)

## Dependencies

- libx11
- libxcb
- libxext
- libxi
- libxtst

## Build dependencies

- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.4.0
- Package-manager updated: 2026-07-04
- Local data: ok
- Upstream repository: https://www.x.org/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

xdpyinfo is the X.Org command-line utility for interrogating an X server and printing its protocol, screen, visual, and extension capabilities. It is old-school X plumbing: not a user-facing desktop app, but a diagnostic probe for the display server behind one.

### Project history

The X11R7.0 manual page credits Jim Fulton of the MIT X Consortium as author, with later extension support added by Joe Moss. That places xdpyinfo in the classic X client-tool tradition that predates modern X.Org packaging, then carried forward into the modular X.Org source tree.

X.Org's 2005 modularization split the old monolithic X Window System source into individual modules for applications, libraries, drivers, fonts, protocol descriptions, and related pieces. xdpyinfo became one of those independently releasable app modules, with its freedesktop.org GitLab project now describing it simply as a display information utility for X.

### Adoption history

xdpyinfo's adoption is tied to X11 itself. Administrators, distribution maintainers, build scripts, and users reach for it when they need to confirm that an X server exists, that DISPLAY points to the intended server, what screens and visuals are exposed, and which protocol extensions are present.

The tool is packaged as part of the wider X.Org application set across Unix-like systems. That packaging role matters because many higher-level desktop or graphics issues reduce to 'what does this X server actually advertise?', and xdpyinfo answers without requiring a full desktop environment.

### How it is used

Typical use is direct inspection: run xdpyinfo against the default DISPLAY, pass -display for another server, use -queryExtensions to include numeric extension opcode/event/error details, or use -ext to dump information for a supported extension. It is often paired mentally with xwininfo, xprop, xrdb, xrandr, and other small X11 inspection commands.

Because it reports server capabilities rather than editing configuration, xdpyinfo is safe to run in diagnostics, bug reports, CI environments using Xvfb, remote X sessions, and package test scripts that need to verify extension availability.

### Why package nerds care

xdpyinfo is a tiny but durable example of why X.Org is packaged as many small commands. Most users do not install it for daily interaction, but when a build, remote display, visual depth, or extension check fails, it becomes the quickest source of truth.

It also preserves the X11 client/server worldview in command form: a local program asks a display server what it can do, and the answer can be piped, pasted into bug reports, or used to explain why another graphical package behaves differently on two machines.

### Timeline

- MIT X Consortium era: Jim Fulton authors xdpyinfo.
- 2005: X11R7.0 ships as the first complete modularized X.Org source release.
- 2010: xdpyinfo 1.2.0 is announced on xorg-announce.
- 2013: xdpyinfo 1.3.1 adds a -version option in a maintenance release.
- 2018: The freedesktop.org GitLab project for the app module is created during repository migration.
- 2025: The GitLab tag list records xdpyinfo 1.4.0.

### Related projects

- xwininfo inspects individual X windows rather than server-wide capabilities.
- xprop prints X window and root-window properties.
- xrandr focuses on RandR output configuration and display modes.
- Xvfb is often used with xdpyinfo in headless test environments.

### Sources

- <https://gitlab.freedesktop.org/xorg/app/xdpyinfo>
- <https://lists.x.org/archives/xorg-announce/2013-May/002217.html>
- <https://www.x.org/ModuleDescriptions/>
- <https://www.x.org/Other/Press/X11R6970Released/>
- <https://www.x.org/archive/X11R7.0/doc/html/xdpyinfo.1.html>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

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

## Other Package-Manager Records

- Nix - xdpyinfo: normalized package name match | nixpkgs package indexes: pkgs/by-name/xd/xdpyinfo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - xdpyinfo - 1.4.0-r0: normalized package name match | Alpine Linux edge package indexes: xdpyinfo from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | display information utility for X | https://xorg.freedesktop.org/
- apk - xdpyinfo-doc - 1.4.0-r0: normalized package name match | Alpine Linux edge package indexes: xdpyinfo-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | display information utility for X (documentation) | https://xorg.freedesktop.org/
- dnf - xdpyinfo - 1.3.4-4.fc44: normalized package name match | Fedora Rawhide package metadata: xdpyinfo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | X11 display information utility | http://www.x.org
- zypper - xdpyinfo - 1.4.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: xdpyinfo from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Utility to display information about an X server | http://xorg.freedesktop.org/
- MacPorts - xdpyinfo: normalized package name match | MacPorts ports tree: x11/xdpyinfo/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [font-util](https://www.automicvault.com/pkg/brew/font-util/) - Shares the same upstream homepage.
- [xinit](https://www.automicvault.com/pkg/brew/xinit/) - Shares av.db curated category or tags: cli, display-server, system, x11, xorg.
- [xorg-server](https://www.automicvault.com/pkg/brew/xorg-server/) - Shares av.db curated category or tags: cli, display-server, system, x11, xorg.
- [libxcvt](https://www.automicvault.com/pkg/brew/libxcvt/) - Shares av.db curated category or tags: cli, system, x11, xorg.
- [libxpm](https://www.automicvault.com/pkg/brew/libxpm/) - Shares av.db curated category or tags: cli, system, x11, xorg.
- [mkfontscale](https://www.automicvault.com/pkg/brew/mkfontscale/) - Shares av.db curated category or tags: cli, system, x11, xorg.
- [xauth](https://www.automicvault.com/pkg/brew/xauth/) - Shares av.db curated category or tags: cli, system, x11, xorg.
- [xcursorgen](https://www.automicvault.com/pkg/brew/xcursorgen/) - Shares av.db curated category or tags: cli, system, x11, xorg.
- [xeyes](https://www.automicvault.com/pkg/brew/xeyes/) - Shares av.db curated category or tags: cli, system, x11, xorg.

## Combined YAML source

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