Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

Removing kernels

Started by Martin A., March 12, 2023, 09:15:03 AM

Previous topic - Next topic

Martin A.

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

AxL

Quote from: Martin A. on March 12, 2023, 09:15:03 AM[....]  for loading kernels is not showing which ones are already installed.
  • If you want to see the installed kernels, open a terminal and type:

dpkg --list | egrep -i --color 'linux-image|linux-headers'


  • Or use, APTus AppCenter > System > Kernels > Remove Old System Kernel:
    (You will be able to see the different Kernels you have installed).



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 !!










➤ Want to know how you can use a program you have never used before? "man" will be your best new friend! Type "man <pkg-name>" in a shell.
➤ Or, point your browser to "manpages.debian.org/<pkg-name>" .... RTFM !!!

View the most recent posts on the forum