LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2016, 07:21 AM   #1
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.1
Posts: 109

Rep: Reputation: Disabled
Remove old kernels


In the update manager I can view a list of old kernels, my question is should old kernels be removed or are they safe to leave & if they should be periodically removed is there a safe & easy way to do it for someone who still regards themselves as a newbie.
I did see an artical that was written for Ubuntu 16.04 that said by installing bikeshed or byobu in terminal it would allow the command "sudo purge-old-kernels" to run which would leave the current plus two older kernels & remove all others, this seemed like what I was looking for but I got the result "No such command" maybe it will not work for Mint, I don't know.

Your thoughts as always appreciated...............
 
Old 06-23-2016, 08:06 AM   #2
hydrurga
Senior Member
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 18.1 MATE
Posts: 3,073

Rep: Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066
Personally, I always keep two versions of the kernel, the latest I've installed and the one before that, so that I can easily switch back if I encounter any problems. You can uninstall old kernels through the Update Manager (I tend to shy away from installing new software to do things that my existing software can already do effectively).

However, there's no harm in keeping old kernels. Unless space is a crucial issue, I personally just remove old ones in order to keep things tidier.
 
Old 06-23-2016, 08:31 AM   #3
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.1
Posts: 109

Original Poster
Rep: Reputation: Disabled
Thanks for the reply hydrurga

The update manager lists loads of kernels, probably 20 or 30 at least starting from 3.13.0-24(3.13.9) up to 4.2.0-19, the currently installed kernel is 3.16.0-38(3.16.7-ckt10) so not (apparently) up to date, but there's also one marked as "recommended" namely 3.19.0-32

Which should I be using ? Is this list of kernels part of my system or is it just a list of available to download kernels & if they are all on my system how come the most up to date one isn't installed by default & what for all the ones I don't want / need, is it just a case of highlighting them & pressing delete?

Ultimately if as I'm sure you guessed I don't really know what I'm doing would I be best to simply leave well alone?

Thanks again.
 
Old 06-23-2016, 08:43 AM   #4
un1x
Member
 
Registered: Oct 2015
Posts: 469

Rep: Reputation: Disabled
Code:
uname -a
Code:
uname -m
Code:
uname -r
u can erase all not listed !

 
Old 06-23-2016, 08:43 AM   #5
hydrurga
Senior Member
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 18.1 MATE
Posts: 3,073

Rep: Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066
Quote:
Originally Posted by gillsman View Post
Thanks for the reply hydrurga

The update manager lists loads of kernels, probably 20 or 30 at least starting from 3.13.0-24(3.13.9) up to 4.2.0-19, the currently installed kernel is 3.16.0-38(3.16.7-ckt10) so not (apparently) up to date, but there's also one marked as "recommended" namely 3.19.0-32

Which should I be using ? Is this list of kernels part of my system or is it just a list of available to download kernels & if they are all on my system how come the most up to date one isn't installed by default & what for all the ones I don't want / need, is it just a case of highlighting them & pressing delete?

Ultimately if as I'm sure you guessed I don't really know what I'm doing would I be best to simply leave well alone?

Thanks again.
Are you sure that all those versions are marked as "Installed" (a tick in the Installed column)? I would find that surprising.

Have a look and let me know which ones are marked as Installed. Then we'll go from there...
 
Old 06-23-2016, 08:47 AM   #6
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.1
Posts: 109

Original Poster
Rep: Reputation: Disabled
My mistake, only the 3.16.0.-38 is installed, should I install the recommended 3.0.19-32 ?
 
Old 06-23-2016, 08:50 AM   #7
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.1
Posts: 109

Original Poster
Rep: Reputation: Disabled
Thanks also un1x.

What is the command banpkgs: systemd,systemd-sysv intended to do ?
 
Old 06-23-2016, 08:56 AM   #8
hydrurga
Senior Member
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 18.1 MATE
Posts: 3,073

Rep: Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066
Quote:
Originally Posted by gillsman View Post
My mistake, only the 3.16.0.-38 is installed, should I install the recommended 3.0.19-32 ?
3.0.19-32 is the one I have installed on my Mint 17.3 setup.

There are two schools of thought. One is that if everything's working fine, you should not upgrade the kernel.

The other is that upgraded kernels offer new features and resolve old bugs and therefore should be kept up to date.

My opinion, regarding Mint anyway (I have a Manjaro box on which I always have the latest kernel installed), is that you should only install a new kernel if it has been recommended after testing by the Mint team, unless you're running Mint on hardware that is not supported correctly by an older kernel and so you definitely need a newer one.

So, yes, go ahead and install the new kernel. You'll notice that when you reboot, the Grub menu auto chooses the most recent kernel version, but allows you to select other installed versions (very useful if you find that your computer can't cope with the latest installed kernel).

Let us know how it goes.
 
Old 06-23-2016, 09:12 AM   #9
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.1
Posts: 109

Original Poster
Rep: Reputation: Disabled
Ok updated now to 3.19.0-32 & all seems to be well.

So I think I understand better now, although there are more recent kernels the one I am now using is the latest recommended kernel, is that right ?
 
Old 06-23-2016, 09:20 AM   #10
hydrurga
Senior Member
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 18.1 MATE
Posts: 3,073

Rep: Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066
Quote:
Originally Posted by gillsman View Post
Ok updated now to 3.19.0-32 & all seems to be well.

So I think I understand better now, although there are more recent kernels the one I am now using is the latest recommended kernel, is that right ?
Great.

Yes, there are quite a few more recent kernels (the latest stable version is 4.6.2 - see https://www.kernel.org/), but none has yet been recommended by the Mint team for use with Mint 17.

The supported kernel version will no doubt increase during the forthcoming upgrade to Mint 18.
 
Old 06-23-2016, 09:32 AM   #11
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.1
Posts: 109

Original Poster
Rep: Reputation: Disabled
That's it then, I'm up to date & a little bit more knowledgeable for the experience.

Many thanks for your assistance.
 
Old 06-23-2016, 09:36 AM   #12
hydrurga
Senior Member
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 18.1 MATE
Posts: 3,073

Rep: Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066
Quote:
Originally Posted by gillsman View Post
That's it then, I'm up to date & a little bit more knowledgeable for the experience.

Many thanks for your assistance.
 
Old 06-24-2016, 09:11 AM   #13
urbanwks
Member
 
Registered: Sep 2003
Distribution: Slackware64-Current, FreeBSD 11.0
Posts: 110

Rep: Reputation: 104Reputation: 104
Quote:
Originally Posted by un1x View Post
Code:
uname -a
Code:
uname -m
Code:
uname -r
u can erase all not listed !

I know this was resolved, but this is dangerous and not very helpful if you have multiple kernels installed. If you are currently using a kernel that you don't want/need to keep for whatever reason (or need to keep others), deleting all but that one isn't going to get you anywhere. Determine which you want/need to keep based on what's available, not what you're currently using.
 
Old 06-24-2016, 10:50 AM   #14
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.1
Posts: 109

Original Poster
Rep: Reputation: Disabled
Thanks for that. It appears I only have two kernels installed, the one I’ve just upgraded to & the previous one so nothing for me to be concerned about.
 
Old 06-24-2016, 11:57 AM   #15
urbanwks
Member
 
Registered: Sep 2003
Distribution: Slackware64-Current, FreeBSD 11.0
Posts: 110

Rep: Reputation: 104Reputation: 104
Quote:
Originally Posted by gillsman View Post
Thanks for that. It appears I only have two kernels installed, the one Iíve just upgraded to & the previous one so nothing for me to be concerned about.
No problem, just wanted to make sure someone else didn't get bad advice
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to remove kernels? vibinlakshman Linux - Newbie 2 08-27-2009 07:57 AM
how to remove old kernels ashwin_cse Ubuntu 4 06-10-2007 11:23 PM
remove old kernels dvsOasis Slackware 1 02-14-2004 08:56 PM
how to remove old kernels? gmoney Red Hat 1 10-15-2003 05:21 AM
How do I safely remove old kernels? Amerist Linux - General 4 11-02-2002 10:56 PM


All times are GMT -5. The time now is 03:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration