Automic VaultAutomic Vault

brew

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

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install xdotool

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install xdotool

MacPorts ports tree · x11/xdotool/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add xdotool

Alpine Linux edge package indexes · xdotool · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install xdotool

Debian stable package indexes · xdotool · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install xdotool

Fedora Rawhide package metadata · xdotool · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#xdotool

nixpkgs package indexes · pkgs/by-name/xd/xdotool/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S xdotool

Arch Linux sync databases · xdotool · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install xdotool

openSUSE Tumbleweed package metadata · xdotool · 来源: download.opensuse.org

概览

软件包摘要

Fake keyboard/mouse input and window management for X

命令和别名

  • xdotool

历史

项目历史与用法

xdotool is Jordan Sissel's X11 automation command: a small CLI and companion libxdo library for synthesizing keyboard and mouse input, searching for windows, and manipulating X window-manager state from scripts.

项目历史

The earliest public GitHub commit history for xdotool reaches back to 2007 and records a migration from a semicomplete Google Code Subversion repository, while the GitHub repository itself was created in 2011. Its upstream documentation has long described the same core design: use the XTEST extension and Xlib calls to fake input, locate windows, move and resize them, switch desktops, and alter window properties.

xdotool evolved from a one-command X scripting helper into a grab bag of practical desktop automation verbs. The upstream README documents not only key and mouse events but also window stacks, EWMH/NetWM-oriented window-manager interactions, and libxdo for C programs that need the same behavior without shelling out.

采用历史

Adoption followed the path of a classic Linux desktop utility: package it everywhere, make it scriptable, and let window-manager users compose it with shell, hotkey daemons, status bars, and test harnesses. The upstream project page lists common installs for Debian/Ubuntu, Fedora, FreeBSD, macOS through Homebrew or MacPorts, and OpenSUSE, matching its role as a small dependency-free command that distributions can ship easily.

Its importance also became clearer during the Wayland transition. The README explicitly warns that xdotool does not work correctly for many Wayland tasks because its model depends on X11 semantics; that limitation turned xdotool into both a beloved X11 automation tool and a marker of the security and protocol differences between X11 and Wayland.

使用方式

Practitioners use xdotool to press hotkeys, type text into focused applications, click or move the pointer, activate a window found by name or class, resize matching windows, script window focus, and glue graphical applications into shell workflows. It is common in lightweight window-manager setups, kiosk scripts, GUI smoke tests, and one-off desktop automation.

The tool is intentionally composable: upstream examples show pipelines that search for Firefox, activate it, and send Ctrl+L, or find visible terminal windows and resize them. libxdo gives packagers and C applications a lower-level route to the same XTEST and Xlib behavior.

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

xdotool is one of the canonical examples of a package that matters because it exposes a desktop protocol as a Unix command. It packages the old X11 assumption that clients can inspect and influence each other into a tiny CLI, which made it disproportionately useful for automation and disproportionately hard to replace under Wayland.

For package nerds, it also illustrates the value of boring distribution: a single executable, a small C library, a manpage, and enough stable behavior that scripts written years apart still tend to work on Xorg sessions.

时间线

  • 2007: Earliest GitHub-visible commit imports xdotool history from the semicomplete Google Code Subversion repository.
  • 2010: Upstream examples note simpler chained commands available as of version 2.20100623.
  • 2011: The GitHub repository is created.
  • 2015: The semicomplete project page documents distro install routes and the XTEST/Xlib design.
  • 2020s: The README frames Wayland incompatibility as a core boundary of xdotool's X11 model.

Related projects

  • libxdo is the C library shipped with xdotool for applications that need xdotool-style X11 automation.
  • XTEST is the X11 extension xdotool uses for synthetic keyboard and mouse input.
  • ydotool and dotool are related tools named by upstream for Wayland-era or uinput-based input automation.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 5 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
xdotoolcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本4.20260303.1
管理器更新时间
本地数据OK
上游当前
检测到的最新版本v4.20260303.1

https://github.com/jordansissel/xdotool

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键brew:xdotool
版本4.20260303.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/xdotool
主页https://www.semicomplete.com/projects/xdotool/
仓库https://github.com/jordansissel/xdotool
上游文档https://github.com/jordansissel/xdotool#readme
许可证BSD-3-Clause
源码归档https://github.com/jordansissel/xdotool/archive/refs/tags/v4.20260303.1.tar.gz
依赖libx11, libxi, libxinerama, libxkbcommon, libxtst
构建依赖pkgconf
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明
注意事项You will probably want to enable XTEST in your X11 server now by running: defaults write org.x.X11 enable_test_extensions -boolean true For the source of this useful hint: https://stackoverflow.com/questions/1264210/does-mac-x11-have-the-xtest-extension

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namexdotool
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

libxdo-dev 1:3.20160805.1-5.1

library for simulating X11 keyboard/mouse input

https://github.com/jordansissel/xdotool/

sudo apt install libxdo-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: xdotool
  • 2 依赖
  • normalized package name match
  • 匹配方式:Xdotool
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libxdo-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libxdo3 1:3.20160805.1-5.1

library for simulating (generating) X11 keyboard/mouse input events

https://github.com/jordansissel/xdotool/

sudo apt install libxdo3
  • Section: libs
  • Architecture: amd64
  • Source Package: xdotool
  • 5 依赖
  • normalized package name match
  • 匹配方式:Xdotool
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libxdo3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

xdotool 1:3.20160805.1-5.1

simulate (generate) X11 keyboard/mouse input events

https://github.com/jordansissel/xdotool/

sudo apt install xdotool
  • Section: x11
  • Architecture: amd64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Xdotool
Debian stable package indexes · deb.debian.org · Debian stable package indexes: xdotool from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

xdotool

nix profile install nixpkgs#xdotool
  • normalized package name match
  • 匹配方式:Xdotool
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/xd/xdotool/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libxdo-dev 1:3.20160805.1-5build1

library for simulating X11 keyboard/mouse input

https://github.com/jordansissel/xdotool/

sudo apt install libxdo-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: xdotool
  • 2 依赖
  • normalized package name match
  • 匹配方式:Xdotool
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libxdo-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libxdo3 1:3.20160805.1-5build1

library for simulating (generating) X11 keyboard/mouse input events

https://github.com/jordansissel/xdotool/

sudo apt install libxdo3
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: xdotool
  • 5 依赖
  • normalized package name match
  • 匹配方式:Xdotool
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libxdo3 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

xdotool 1:3.20160805.1-5build1

simulate (generate) X11 keyboard/mouse input events

https://github.com/jordansissel/xdotool/

sudo apt install xdotool
  • Section: universe/x11
  • Architecture: amd64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Xdotool
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: xdotool from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

xdotool 4.20260303.1-r0

Simulate X11 keyboard/mouse input events

https://github.com/jordansissel/xdotool

sudo apk add xdotool
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: xdotool
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Xdotool
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: xdotool from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

xdotool-dev 4.20260303.1-r0

Simulate X11 keyboard/mouse input events (development files)

https://github.com/jordansissel/xdotool

sudo apk add xdotool-dev
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: xdotool
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Xdotool
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: xdotool-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

xdotool-doc 4.20260303.1-r0

Simulate X11 keyboard/mouse input events (documentation)

https://github.com/jordansissel/xdotool

sudo apk add xdotool-doc
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: xdotool
  • normalized package name match
  • 匹配方式:Xdotool
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: xdotool-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

libxdo 3.20211022.1-10.fc44

Keyboard input simulation library

https://github.com/jordansissel/xdotool

sudo dnf install libxdo
  • License: LicenseRef-Callaway-BSD
  • Category: Unspecified
  • Architecture: i686
  • Source Package: xdotool
  • 6 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Xdotool
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libxdo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libxdo-devel 3.20211022.1-10.fc44

Development files for libxdo

https://github.com/jordansissel/xdotool

sudo dnf install libxdo-devel
  • License: LicenseRef-Callaway-BSD
  • Category: Unspecified
  • Architecture: i686
  • Source Package: xdotool
  • 4 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Xdotool
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libxdo-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

xdotool 3.20211022.1-10.fc44

Fake keyboard/mouse input

https://github.com/jordansissel/xdotool

sudo dnf install xdotool
  • License: LicenseRef-Callaway-BSD
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: xdotool
  • 5 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Xdotool
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: xdotool from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

xdotool 4.20260303.1-1

Command-line X11 automation tool

https://www.semicomplete.com/projects/xdotool/

sudo pacman -S xdotool
  • License: BSD-3-Clause
  • Architecture: x86_64
  • 5 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Xdotool
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: xdotool from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

xdotool 4.20251130.1-1.3

Fake keyboard/mouse input

https://www.semicomplete.com/projects/xdotool/

sudo zypper install xdotool
  • License: BSD-3-Clause
  • Category: System/X11/Utilities
  • Architecture: x86_64
  • Source Package: xdotool
  • 7 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Xdotool
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: xdotool from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

xdotool-devel 4.20251130.1-1.3

Development and Library files

https://www.semicomplete.com/projects/xdotool/

sudo zypper install xdotool-devel
  • License: BSD-3-Clause
  • Category: Development/Libraries/X11
  • Architecture: x86_64
  • Source Package: xdotool
  • 4 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Xdotool
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: xdotool-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment