-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux modprobe Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to modprobe on Linux, covering Arch Linux, CachyOS, and other distributions including loading modules, removing modules, and kernel module management.
modprobe loads and removes kernel modules.
Uses:
- Load modules: Load kernel modules
- Remove modules: Unload modules
- Module management: Manage modules
- Dependency handling: Handles dependencies
Why it matters:
- Module management: Load/unload modules
- Dependency handling: Handles dependencies automatically
- Driver management: Manage drivers
Basic usage:
# Load module
sudo modprobe module-name
# Loads module and dependenciesUnload module:
# Remove module
sudo modprobe -r module-name
# -r = remove (unloads module)Module options:
# Load with options
sudo modprobe module-name option=value
# Passes options to moduleShow actions:
# Verbose mode
sudo modprobe -v module-name
# -v = verbose (shows actions)Force unload:
# Force remove
sudo modprobe -r -f module-name
# -f = force (removes even if in use)Remove with dependencies:
# Remove with dependencies
sudo modprobe -r module-name
# Automatically removes unused dependenciesCheck module:
# Verify module exists
modinfo module-name
# Check module path
find /lib/modules -name "module-name.ko"This guide covered modprobe usage, module loading, and removal for Arch Linux, CachyOS, and other distributions.
- lsmod Guide - List modules
- modinfo Guide - Module information
- Kernel Management - Kernel management
-
modprobe Documentation:
man modprobe
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.