Removing old kernels [SOLVED]

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
slometa
Level 2
Level 2
Posts: 68
Joined: Fri Apr 08, 2016 4:19 pm

Removing old kernels [SOLVED]

Post by slometa » Wed Sep 19, 2018 1:36 am

Hi,
I created new initrd and now I need to remove old kernels.
Can you suggest me how to do it properly? Do I need to provide more information?
Thank you!
Last edited by slometa on Wed Sep 26, 2018 4:03 pm, edited 2 times in total.

User avatar
catweazel
Level 17
Level 17
Posts: 7497
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Removing old kernels

Post by catweazel » Wed Sep 19, 2018 1:37 am

slometa wrote:
Wed Sep 19, 2018 1:36 am
Hi,
I created new initrd and now I need to remove old kernels.
Can you suggest me how to do it properly? Do I need to provide more information?
Thank you!

Code: Select all

dpkg -l | grep "linux\-[a-z]*\-"
sudo apt remove <pkg names>
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

User avatar
smurphos
Level 7
Level 7
Posts: 1601
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: Removing old kernels

Post by smurphos » Wed Sep 19, 2018 1:51 am

The GUI way is via Update Manager > View > Linux Kernels > pick a kernel > click remove.

slometa
Level 2
Level 2
Posts: 68
Joined: Fri Apr 08, 2016 4:19 pm

Re: Removing old kernels

Post by slometa » Wed Sep 26, 2018 3:39 pm

Thank you.
So if I check Linux kernels at Update Manager, I should pick the kernels that are shown under installed. But not the one loaded (in bold).
Just want to be 200% sure not to make a mess 😇.
👍

User avatar
Moem
Level 16
Level 16
Posts: 6756
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Removing old kernels

Post by Moem » Wed Sep 26, 2018 3:49 pm

slometa wrote:
Wed Sep 26, 2018 3:39 pm
So if I check Linux kernels at Update Manager, I should pick the kernels that are shown under installed. But not the one loaded (in bold).
That's correct, but don't worry... it will not let you remove the loaded / active kernel.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

slometa
Level 2
Level 2
Posts: 68
Joined: Fri Apr 08, 2016 4:19 pm

Re: Removing old kernels

Post by slometa » Wed Sep 26, 2018 4:02 pm

Thanks!

Post Reply

Return to “Newbie Questions”