LinuxCommandLibrary

systemd-hwdb

Manage udev hardware database

TLDR

Update hardware database

$ systemd-hwdb update
copy
Query database for modalias
$ systemd-hwdb query [modalias]
copy
Update with strict error checking
$ systemd-hwdb -s update
copy
Update in /usr/lib/udev
$ systemd-hwdb --usr update
copy
Update for alternate root
$ systemd-hwdb -r [/path/to/root] update
copy

SYNOPSIS

systemd-hwdb [OPTIONS] COMMAND

DESCRIPTION

systemd-hwdb manages the udev hardware database, which maps hardware identifiers (modalias) to properties and metadata. The database is compiled from text files in `/usr/lib/udev/hwdb.d/` and `/etc/udev/hwdb.d/` into a binary format for fast lookup.
This database is used by udev rules to identify hardware and set appropriate properties.

PARAMETERS

-s, --strict

Return non-zero exit on parsing errors
--usr
Update database in /usr/lib/udev instead of /etc/udev
-r, --root= PATH
Operate on alternate root filesystem

COMMANDS

update

Compile hwdb source files into binary database
query MODALIAS
Query database for a specific modalias

CAVEATS

Must run `systemd-hwdb update` after modifying hwdb source files. The binary database is architecture-specific. Changes in /etc override /usr/lib entries.

HISTORY

systemd-hwdb replaces the older udev hwdb management, providing hardware identification data used throughout the system for device setup.

SEE ALSO

udevadm(8), hwdb(7)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community