2025-03-14 21:59:59 -06:00
|
|
|
# modprobe
|
|
|
|
|
|
|
|
|
|
> Add or remove modules from the Linux kernel.
|
2025-09-14 18:48:49 -06:00
|
|
|
> See also: `kmod` for other module management commands.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://manned.org/modprobe>.
|
|
|
|
|
|
|
|
|
|
- Pretend to load a module into the kernel, but don't actually do it:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`sudo modprobe {{[-n|--dry-run]}} {{module_name}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Load a module into the kernel:
|
|
|
|
|
|
|
|
|
|
`sudo modprobe {{module_name}}`
|
|
|
|
|
|
|
|
|
|
- Remove a module from the kernel:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`sudo modprobe {{[-r|--remove]}} {{module_name}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Remove a module and those that depend on it from the kernel:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`sudo modprobe {{[-r|--remove]}} --remove-holders {{module_name}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Show a kernel module's dependencies:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`sudo modprobe {{[-D|--show-depends]}} {{module_name}}`
|