SparkyLinux Forums

Software & hardware support => Sparky Linux kernel => Topic started by: Martin A. on March 12, 2023, 09:15:03 AM

Title: Removing kernels
Post by: Martin A. on March 12, 2023, 09:15:03 AM
Hello everyone.

The mask for loading kernels is not showing which ones are already installed. I tried Liquorix and Xan but there is no list allowing me to uninstall and clean up.
Why is that?
And is there a set of command line instructions to remove all different types of kernels?

I've seen of course "remove old kernel" but it's inadequate.

Thanks
Title: Re: Removing kernels
Post by: AxL on March 18, 2023, 01:52:55 AM
Quote from: Martin A. on March 12, 2023, 09:15:03 AM[....]  for loading kernels is not showing which ones are already installed.
(https://i.imgur.com/bDtcOwK.gif) dpkg --list | egrep -i --color 'linux-image|linux-headers'



Quote from: Martin A. on March 12, 2023, 09:15:03 AM[....] And is there a set of command line instructions to remove all different types of kernels?

sudo apt-get remove $(dpkg -l|egrep '^ii  linux-(im|he)'|awk '{print $2}'|grep -v `uname -r`)

Quote from: Martin A. on March 12, 2023, 09:15:03 AM[....] Thanks

You're welcome !!










(https://i.imgur.com/uZvkZOF.gif)