To add or remove a Linux kernel module or driver on a Linux system, you can use the modprobe
command. This command allows you to dynamically load and unload kernel modules, which can be used to add or remove support for specific hardware devices or to enable or disable certain kernel features.
To add a new kernel module, you can use the modprobe
command followed by the name of the module you want to load. For example, to load the nvidia
kernel module, you can use the following command:
modprobe nvidia
To remove a kernel module, you can use the modprobe
command with the -r
option followed by the name of the module you want to unload. For example, to unload the nvidia
kernel module, you can use the following command:
modprobe -r nvidia
Note: The exact steps for adding or removing a kernel module may vary depending on your Linux distribution and the specific kernel module you want to add or remove. In some cases, you may need to install additional packages or configure certain settings before you can use the
modprobe
command to add or remove a kernel module. It is recommended to consult the documentation for your Linux distribution and the kernel module you want to add or remove for more detailed instructions.