Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 07-05-2010, 08:36 AM   #1
Registered: Oct 2009
Location: England
Distribution: *buntu, Vector
Posts: 499

Rep: Reputation: 102Reputation: 102
yum update removing kernels, is this safe?

Get the following when doing a yum update (or a yum upgrade) on CentOS:
[root@clubadmin ~]# yum upgrade
Loaded plugins: allowdowngrade, fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * addons:
 * base:
 * centosplus:
 * contrib:
 * extras:
 * rpmforge:
 * updates:
1274 packages excluded due to repository priority protections
Setting up Upgrade Process
Resolving Dependencies
--> Running transaction check
---> Package gnome-python2-extras.i386 0:2.14.2-7.el5 set to be updated
---> Package gnome-python2-gtkhtml2.i386 0:2.14.2-7.el5 set to be updated
---> Package gnome-python2-libegg.i386 0:2.14.2-7.el5 set to be updated
---> Package kernel.i686 0:2.6.18-194.8.1.el5 set to be installed
---> Package xmlstarlet.i386 0:1.0.1-1.el5.rf set to be updated
--> Finished Dependency Resolution
--> Running transaction check
---> Package kernel.i686 0:2.6.18-164.el5 set to be erased
---> Package kernel.i686 0:2.6.18-164.11.1.el5 set to be erased
---> Package kernel.i686 0:2.6.18-164.15.1.el5 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

 Package                   Arch    Version                   Repository    Size
 kernel                    i686    2.6.18-194.8.1.el5        updates       17 M
 gnome-python2-extras      i386    2.14.2-7.el5              updates       24 k
 gnome-python2-gtkhtml2    i386    2.14.2-7.el5              updates       15 k
 gnome-python2-libegg      i386    2.14.2-7.el5              updates       53 k
 xmlstarlet                i386    1.0.1-1.el5.rf            rpmforge      55 k
 kernel                    i686    2.6.18-164.el5            installed     41 M
 kernel                    i686    2.6.18-164.11.1.el5       installed     41 M
 kernel                    i686    2.6.18-164.15.1.el5       installed     41 M

Transaction Summary
Install       1 Package(s)
Upgrade       4 Package(s)
Remove        3 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

Total download size: 17 M
Is this ok [y/N]: N
Is it safe to remove the old kernels? I don't plan on rebooting the machine - it's in another building and I'm always a bit paranoid of stuff not coming back up right.
Old 07-05-2010, 09:57 AM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
Yes. By default it's set to keep a few old kernels but remove the oldest. Cross-reference that output with "uname -a" and what's in grub.conf.
Old 07-05-2010, 10:12 AM   #3
Registered: Oct 2009
Location: England
Distribution: *buntu, Vector
Posts: 499

Original Poster
Rep: Reputation: 102Reputation: 102
I've seen that it does have the sense to not remove the currently running kernel (I have a couple of CentOS servers, currently on differing kernels due to different uptimes). So hopefully all should be fine.
Old 07-05-2010, 10:16 AM   #4
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,271

Rep: Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828
I don't like removing kernels automagically, and leave one working one spare until I try the new one. If you don't plan on rebooting, it's a no brainer: You'd actually be deleting the kernel & modules you are running on, aren't you!? That would earn you a highly deserved kick where the sun doesn't shine :-/.

I have found booting problems with new kernels and updated kernels. I know nothing should go wrong . . go wrong . . go wrong
Old 07-05-2010, 12:57 PM   #5
Senior Member
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
CentOS leaves SEVERAL older kernels. 2.6.18-194, 2.6.18-194.1 and 2.6.18-194.3 are not touched.
Old 07-05-2010, 01:06 PM   #6
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
See the manpages for yum.conf(5). This behavior is controlled by the installonlypkgs and installonly_limit directives.
Old 07-05-2010, 09:37 PM   #7
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,169

Rep: Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493
i would let Cent save 3
the current kernel and the 2 back up .


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
removing old kernels sycamorex Linux - Software 4 12-31-2008 08:54 AM
fc3: removing old kernel/stuff after yum update pcandpc Fedora 3 05-13-2006 07:05 AM
Removing old kernels dbzw Linux - Newbie 5 02-29-2004 12:01 PM
New stable kernels.. safe to use? ToothPaste Linux - Newbie 1 12-19-2003 10:17 AM
removing old kernels in RH 8.0 bobterri Linux - General 2 12-02-2002 09:57 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:35 AM.

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