Published on

Manage Kernels on Manjaro with `mhwd-kernel`

Authors
  • avatar
    Name
    hwahyeon
    Twitter

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

CommandDescription
mhwd-kernel -liList installed kernels and show the currently running kernel
mhwd-kernel -lShow kernels available in the repositories
sudo mhwd-kernel -i linux66Install a kernel, such as linux66
sudo mhwd-kernel -r linux515Remove an installed kernel, such as linux515
sudo mhwd-kernel -i linux66 rmcInstall 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.