modprobed_db(8)
π
modprobed_db(8): the manual, but bestie edition π
okay so this is the manual page for modprobed_db(8), and we are gonna make it make sense. no cap, itβs actually a super useful little utility. letβs go π
πΈ NAME πΈ
Modprobed-db β Store every unique module probed on the system. β¨
π¦ SYNOPSIS π¦
modprobed-db [options]
π DESCRIPTION π
Modprobed-db is a useful utility for users wishing to build a minimal kernel via a make localmodconfig step. In a nutshell, make localmodconfig creates a config based on the current config and from a list of modules you define (that modprobed-db keeps for you). It then disables any module option that is not needed, thus not building hundreds/potentially thousands of extraneous modules. This results in a system-specific, streamlined kernel package and footprint as well as reduced compilation times. iconic behavior, honestly π₯
Modprobed-db simply logs every module ever probed on the target system to a text-based database ($XDG_DATA_HOME/modprobed-db/modprobed.db) which can be read directly by make localmodconfig as described above. itβs giving βpersonalized kernel notesβ and iβm obsessed π
Both files follow the XDG base directory specification:
- config lives in
$XDG_CONFIG_HOME/modprobed-db/modprobed-db.conf(~/.config/modprobed-db/modprobed-db.conf) - database live in
$XDG_DATA_HOME/modprobed-db/modprobed.db(~/.local/share/modprobed-db/modprobed.db).
π OPTIONS π
listβ Display to stdout the contents of the user database defined in$XDG_CONFIG_HOME/modprobed-db/modprobed-db.conf. little database reveal moment β¨storeβ Take a snapshot of currently loaded modules and log them to the database file. Note that this operation collects a cumulative list of all modules probed and only logs ones that modprobed-db has not seen before. so itβs not re-logging the same old stuff, sheβs efficient πstoresilentβ Same asstorebut less verbose. quiet queen behavior π€«debugβ Print the difference between currently loaded modules (/proc/modules) and the user database. detective mode activated πrecallβ Callmodprobefor every module contained in the database. remind the system who they are πrebuildβ Rebuild the database to remove stale module entries. The current database is loaded viamodprobe(warnings are suppressed if any are present) and then a new database is generated based on what loaded successfully. The old database is backed-up. glow-up for your database π¦
π SETUP AND BASIC USAGE π
- Edit
$XDG_CONFIG_HOME/modprobed-db/modprobed-db.confto define modules to ignore in theIGNOREarray. For example, modules that are not provided by the Linux kernel package and are provided by an external package. The examples provided are a few suggestions specific to Arch Linux. bestie, customize that array π - Optionally automate calling the script to run at some regular interval.
Users of systemd may use the included user service that will run modprobed-db in store mode once every six hours, at boot, and on shutdown. Invoke it like so:
systemctl --user enable modprobed-db
systemctl --user start modprobed-db
Status of the service and of the timer can be queried like so:
systemctl --user status modprobed-db
systemctl --user list-timers
Cron users can add an entry to their respective crontab:
For example, once every six hours:
0 */6 * * * /usr/bin/modprobed-db store &> /dev/null
- When building a kernel, simply set the
LSMODvariable to the database ($XDG_DATA_HOME/modprobed-db/modprobed.db) in the make step:
make LSMOD=$HOME/.local/share/modprobed-db/modprobed.db localmodconfig
this is the main character moment of the whole process, fr fr π
β TIPS β
- As upstream kernel code changes, new modules become available or are removed. It is recommended to boot into a distro default kernel and invoke modprobed-db in
storemode to capture any new modules that have become available on new major kernel releases. keep up with the kernel lore π«Ά - When modprobed-db is run in
recallmode,modprobemay throw a warning like,"modprobe: WARNING: Module foo not found in directory /lib/modules/kernel-name."To clean (refresh) the database, run modprobed-db inrebuildmode to clean the database. not a crisis, just a little database refresh moment π§
π SEE ALSO π
π BUGS π
No known bugs. we love a clean bill of health π
π AUTHOR π
graysky (graysky AT proton DOT me)
thatβs the whole vibe, bestie π«Ά this page is from modprobed_db(8), dated 29 August 2026. go forth and keep that module database iconic β¨π
π₯
π¦ where this page comes from
- nixpkgs unstable: modprobed-db 2.51
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms