LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-29-2012, 12:26 AM   #1
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 364

Rep: Reputation: 38
Question Yum update | reboot necessary?


I have a bunch of CentOS 5.5 servers which are in production use. I would like to know what actually happens underneath when I update them.

Running an yum update (pointing to the default repos) will update to CentOS 5.8. Now, during the update process, say apache httpd v 2.2.2 is running live serving pages while at the same time I run yum update and it updates the apache httpd to v 2.2.3. Seems like a very obvious question, but does the it restart the httpd service?

Also, updating from CentOS 5.5 to 5.8 would it matter if I not reboot the machine. A reboot will pick the latest installed kernel but other than that is it ok to keep the server running without a reboot?

Last edited by the_gripmaster; 05-29-2012 at 12:27 AM.
 
Old 05-29-2012, 12:37 AM   #2
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 509

Rep: Reputation: 203Reputation: 203Reputation: 203
I personally would be very hesitant to update & not reboot asap in a production environment, as I have had unexplained problems after upgrading & not rebooting in the past. Any chance you can test this in a DEV environment first?
 
1 members found this post helpful.
Old 05-29-2012, 12:50 AM   #3
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 364

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by cliffordw View Post
I personally would be very hesitant to update & not reboot asap in a production environment, as I have had unexplained problems after upgrading & not rebooting in the past. Any chance you can test this in a DEV environment first?
Not really. I did update the dev environments but had rebooted soon after the yum update.

Yes, now I realize there could be issues not rebooting after such a major leap in versions.
 
Old 05-29-2012, 07:26 AM   #4
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 50
If Yum upgrades httpd, it will definitely restarts httpd since it erases existing version and installs the new one. This scenario, you do not require reboot.


If you upgrade the system packages like kernel etc, you must need to reboot the system.
 
Old 06-19-2012, 11:33 PM   #5
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 364

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by blue_print View Post
If Yum upgrades httpd, it will definitely restarts httpd since it erases existing version and installs the new one.
[...truncated...]
Found some new info on this: http://it.toolbox.com/blogs/locutus/...ebooting-12826

So after apache (httpd) is updated, the older version is still in memory and it is the one running. A restart of the service will load the updated binaries/libraries.
 
Old 06-20-2012, 04:16 AM   #6
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by blue_print View Post
If you upgrade the system packages like kernel etc, you must need to reboot the system.
I don't believe its mandatory to reboot the system after kernel upgrade, but if you install a new kernel then you need to reboot your machine from the new kernel.
 
Old 06-20-2012, 04:51 AM   #7
iashkan
LQ Newbie
 
Registered: Jun 2011
Location: Tehran, Iran
Distribution: Centos, Debian, Freebsd
Posts: 24

Rep: Reputation: Disabled
personally I will reboot asap if it is's a desktop computer
but for server I'll wait to have several acceptable reasons for that.
 
Old 06-20-2012, 07:44 PM   #8
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 364

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by deep27ak View Post
I don't believe its mandatory to reboot the system after kernel upgrade, but if you install a new kernel then you need to reboot your machine from the new kernel.
Correct. Yum always "installs" (rather than update) a new kernel. So it is okay not to reboot unless you want to run using the latest installed kernel.
 
  


Reply

Tags
yum update



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
fedora 12 `yum update -y` & ran out of space in my /var/yum/cache/directory. techknowtarded Linux - Newbie 7 08-13-2011 07:23 PM
After yum update kernel do I need to reboot? cnmoore Linux - Newbie 2 06-03-2011 12:34 PM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Software 2 03-30-2010 08:15 AM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Newbie 1 03-29-2010 12:56 PM
reboot freezes after yast update run, reboot for kernel update sparkbot Linux - Software 2 11-15-2006 06:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:10 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
Open Source Consulting | Domain Registration