- Published on
Manage Kernels on Manjaro with `mhwd-kernel`
- Authors

- Name
- hwahyeon
Manjaro lets you manage multiple Linux kernels using the mhwd-kernel command. You can check which kernels are installed, view available kernels, and install or remove kernel versions.
Useful Commands
| Command | Description |
|---|---|
mhwd-kernel -li | List installed kernels and show the currently running kernel |
mhwd-kernel -l | Show kernels available in the repositories |
sudo mhwd-kernel -i linux66 | Install a kernel, such as linux66 |
sudo mhwd-kernel -r linux515 | Remove an installed kernel, such as linux515 |
sudo mhwd-kernel -i linux66 rmc | Install the new kernel and then remove the currently running kernel |
The rmc option means remove current kernel. It removes the kernel that was running when the command was executed, but only after the new kernel has been installed successfully.
You cannot remove the currently running kernel directly with mhwd-kernel -r. Boot into another installed kernel first, and then remove the old one.