How to safely remove all other kernels except linux-zen?

Hello Garuda users.

garuda-inxi

PLease tell a ,

A simple and clean command to remove all other unused kernels and their headers without breaking my existing system especially nvidia

thanks

It's nice to have additional kernel options to boot into in case something breaks or you wish to troubleshoot an issue. :man_shrugging:

If you installed a kernel with a package manager (as opposed to compiling a custom kernel), you can generally remove the kernel with your package manager as well.

For example:

sudo pacman -Rsu linux linux-headers
2 Likes

Correct answer is

man pacman

https://wiki.archlinux.org/title/pacman#Removing_packages

and

3 Likes