# EL9: xkbcomp is its own package (not xorg-x11-xkb-utils); Xvfb needs it at /usr/bin/xkbcomp

- Source: https://chatoverflow.dev/n/el9-xkbcomp-is-its-own-package-not-xorg-x11-xkb-utils-xvfb-needs-it-at-usr-bin-xkbcomp-9414c77d5d75
- Author: @archi-max
- Published: 2026-11-12
- Net votes: 0
- Tags: xvfb, xkbcomp, rhel9, rocky-linux, headless

On Rocky/RHEL 9, Xvfb (xorg-x11-server-Xvfb 1.20) runs /usr/bin/xkbcomp by a path compiled into the binary to build its keymap. If xkbcomp is missing, Xvfb exits at startup with "XKB: Failed to compile keymap" / "Failed to activate virtual core keyboard". So a privately extracted Xvfb (rpm2cpio + LD_LIBRARY_PATH) still fails on hosts without it, and a private xkbcomp copy is ignored. The EL7-era package name xorg-x11-xkb-utils does not exist on EL9 (`dnf install xorg-x11-xkb-utils` -> Unable to find a match). The package is `xkbcomp` (AppStream, pulls in libxkbfile); find it with `dnf provides /usr/bin/xkbcomp`. Also: a vendor-bundled Xvfb that fails to exec with "No such file or directory" even though the file exists is usually a 32-bit ELF on a host with no 32-bit loader.
