Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, zypper 安装 xmodmap

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install xmodmap

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install xmodmap

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

Linux

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

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

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

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

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

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

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

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

概览

软件包摘要

Modify keymaps and pointer button mappings in X

命令和别名

  • xmodmap

历史

项目历史与用法

xmodmap is one of the old X11 session-shaping utilities: it edits and prints the keyboard modifier map, the keymap table used to translate keycodes into keysyms, and pointer button mappings. Its package-manager role is narrow but durable: install it when an X session needs per-user key remapping without changing a system keyboard layout.

项目历史

The X11R6.8.2 manual credits Jim Fulton of the MIT X Consortium, rewritten from an earlier version by David Rosenthal of Sun Microsystems, which places xmodmap squarely in the classic vendor-and-consortium X Window System toolset. The X.Org GitLab repository is the modern maintenance home for that small utility, describing it as a tool for modifying keymaps and pointer button mappings in X.

xmodmap persisted because X11 exposed keycodes, keysyms, modifier maps, and MappingNotify events as user-visible machinery. The utility is intentionally close to those primitives: it reads expressions such as keycode, keysym, add, remove, clear, and pointer assignments, parses them first, then applies the resulting map changes to the running X server.

采用历史

Historically, xmodmap became part of the personal Unix desktop toolkit. Its own manual says it is usually run from a user's session startup script, and the examples document common workstation-era irritations: swapping Caps Lock and Control, making Alt act as Meta, fixing Backspace/Delete behavior, adding less-than and greater-than bindings, and reversing pointer buttons for left-handed use.

Its adoption later became more situational as XKB, desktop-environment keyboard panels, libinput, Wayland compositors, and per-application shortcuts took over many layout tasks. Even so, package collections still carry xmodmap because remote X sessions, minimal window managers, old documentation, and quick one-line remaps still need the original X11-level tool.

使用方式

Typical usage is either ad hoc, such as xmodmap -e "pointer = 3 2 1", or startup-driven through a file such as ~/.xmodmaprc. Users inspect the current state with -pm, -pk, -pke, or -pp, then feed expressions back to the server to change modifier keys, keysyms, keycodes, or pointer buttons.

The main practical caveat is also in the old manual: mapping changes generate MappingNotify events, and clients that ignore those events may not notice changes. That is why xmodmap remains best suited to simple X11 session customization rather than full modern keyboard-layout management.

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

xmodmap is package archaeology that is still runnable. It is tiny, scriptable, X11-specific, and exposes the desktop stack at a level that newer settings panels hide. For package nerds, it is the difference between shipping an entire input-configuration layer and shipping one classic command that can still fix a weird keyboard in a minimal X session.

It also marks a useful boundary in platform history: when a package depends on xmodmap, it is probably assuming X11 semantics, not Wayland compositor settings or cross-platform shortcut APIs.

时间线

  • X11 consortium era: xmodmap is authored by Jim Fulton of the MIT X Consortium, based on an earlier Sun Microsystems version by David Rosenthal.
  • 1990s: X11R6-era documentation records xmodmap as a standard X utility for user startup scripts and key/pointer remapping.
  • 2018-07-29: The freedesktop.org GitLab project for xorg/app/xmodmap is created as part of the modern X.Org source hosting layout.
  • 2020s: xmodmap remains packaged mainly for X11 sessions, minimal desktops, remote X usage, and compatibility with old remapping recipes.

Related projects

  • xev is commonly used with xmodmap to discover keycodes and keysyms.
  • XKB and setxkbmap cover broader X keyboard layout configuration that often supersedes xmodmap for full layouts.
  • xinput, libinput, and compositor-specific settings cover much of the modern pointer/input space outside xmodmap's narrow X11 map-editing role.

安全态势

风险级别:绿色

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 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

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

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

页面生成时间2026-07-26
管理器版本1.0.12
管理器更新时间2026-07-19
本地数据OK
上游not checked
检测到的最新版本未检测到

https://gitlab.freedesktop.org/xorg/app/xmodmap

安装元数据

软件包元数据

软件包键brew:xmodmap
版本1.0.12
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/xmodmap
主页https://gitlab.freedesktop.org/xorg/app/xmodmap
仓库https://gitlab.freedesktop.org/xorg/app/xmodmap
上游文档https://gitlab.freedesktop.org/xorg/app/xmodmap
许可证MIT-open-group
源码归档https://www.x.org/releases/individual/app/xmodmap-1.0.12.tar.xz
最后更新2026-07-19T21:12:53Z
Pulseupdated
依赖libx11
构建依赖pkgconf, xorgproto
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Nix95%

xmodmap

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

xmodmap 1.0.11-r1

Utility for modifying keymaps and pointer button mappings in X

https://xorg.freedesktop.org/

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

xmodmap-doc 1.0.11-r1

Utility for modifying keymaps and pointer button mappings in X (documentation)

https://xorg.freedesktop.org/

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

xmodmap 1.0.11-10.fc44

Edit and display the X11 core keyboard map

https://www.x.org

sudo dnf install xmodmap
  • License: MIT AND MIT-open-group
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: xmodmap
  • 3 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Xmodmap
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: xmodmap from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper95%

xmodmap 1.0.11-1.11

Utility to modify keymaps and pointer button mappings in X

https://xorg.freedesktop.org/

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

xmodmap

sudo port install xmodmap
  • normalized package name match
  • 匹配方式:Xmodmap
MacPorts ports tree · api.github.com · MacPorts ports tree: x11/xmodmap/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 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