LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 07-05-2010, 08:36 AM   #1
cantab
Member
 
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:
Code:
[root@clubadmin ~]# yum upgrade
Loaded plugins: allowdowngrade, fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * addons: mirror.bytemark.co.uk
 * base: mirror.bytemark.co.uk
 * centosplus: mirror.bytemark.co.uk
 * contrib: www.mirrorservice.org
 * extras: mirror.bytemark.co.uk
 * rpmforge: fr2.rpmfind.net
 * updates: mirror.bytemark.co.uk
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
================================================================================
Installing:
 kernel                    i686    2.6.18-194.8.1.el5        updates       17 M
Updating:
 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
Removing:
 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
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,630

Rep: Reputation: 519Reputation: 519Reputation: 519Reputation: 519Reputation: 519Reputation: 519
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
cantab
Member
 
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
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,297

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
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
DrLove73
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
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
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
Guru
 
Registered: Aug 2005
Posts: 12,834

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


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


All times are GMT -5. The time now is 08:36 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration