depmod -a

Category: Administration

depmod -a

Rebuild the kernel module dependency database

Scans all modules under /lib/modules and regenerates modules.dep, the index modprobe uses to resolve dependencies. Run it after installing new kernel modules or a new kernel so modprobe can find them. Without a current index, modprobe reports modules missing even when the files exist.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.