How to determine if a package needs a reboot?

 
Thread Tools Search this Thread
Operating Systems Linux Debian How to determine if a package needs a reboot?
# 1  
Old 02-23-2009
How to determine if a package needs a reboot?

Hi,

Anyone got a clue? is there some tool for it? couldnt find it in apt get, anyway i hope so cos i must build a patch management tool for work:P

Greetz.
# 2  
Old 02-23-2009
I found only 2 reasons to reboot my Debian system so far:
  1. Hardware change
  2. Kernel update
# 3  
Old 02-23-2009
Well i didnt know quite were to post it, cos the program should work cross platform, so also fedora redhat, sun solaris and others should be covered...

So you are saying that except those 2 there never is a reboot needed? that should safe me from a lot of trouble Smilie
# 4  
Old 02-23-2009
For most UNIXes I know there's usually no reason to reboot except for those two. Whether or not any services have to be (manually) restarted depends on the package management system and the distributor. (but most do it themselves)
If you manage to include kexec properly you can even save a lot of time on kernel updates on Linux machines.
# 5  
Old 02-23-2009
Thanks for your response, and how about information about services being stopped? A lot of servers on which to install packages are customers of the business and dont want any services to be stopped or restarted (for example apache). is there any way to find out if a service needs to be restarted in the packafe info?

Greetz and thanks in advance.
# 6  
Old 02-23-2009
On the two most prevalent package management systems for Linux (deb and rpm) that information isn't really accessible, but depends on what the pre-/postinstall scripts embedded in the package do and how the maintainer wrote those.
As for downtime: a typical Apache upgrade for me never resulted in more that 30 seconds downtime (which was on a P90, long ago). Since an upgrade should be done between business hours anyways (in case somethings goes terribly wrong) a blip of about 5 minutes shouldn't do too much of an impact on business. If it would I suggest investing in redundancy and update only one node at a time.
# 7  
Old 02-23-2009
Thanks for the information, i was already guessing there was no easy way around it really, well this prolly means we prolly have to dry run packages and check for any errors, if so they have to install manually i guess,

I forgot to meantion that it was going to be an automated patch management tool really Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Emergency UNIX and Linux Support

Problem when trying to remove a package using rpm command - error: package is not installed

Hello, i have installed a package by using the command sudo rpm -i filepackage.rpm package filepackage is already installed when i try to remove it, i get an error saying "is not installed": sudo rpm -e filepackage.rpm error: package filepackage is not installed How can... (4 Replies)
Discussion started by: g_p
4 Replies

2. UNIX for Dummies Questions & Answers

Can't install rpm package with --prefix in new path.Error: package is not relocatable

Hello, i have downloaded an rpm package "hadoop-0.20.205.0-1.amd64.rpm" in /usr/local/ directory. I'm trying to install the rpm package in a new path/location (/usr/local/hadoop-0.20.205), but i can't. I did: 1st try: Didn't work sudo rpm -i --prefix=/usr/local/hadoop-0.20.205... (1 Reply)
Discussion started by: g_p
1 Replies

3. UNIX for Advanced & Expert Users

How to find dependancies of .dstream package (Solaris) & .rpm package( linux)

Friends, Please let meknow, How we can find the dependancies of .dstream package & .rpm package before installation ? For AIX, We can use the inutoc . command to create the .toc file for the bff package, What about Solaris & Linux ? (0 Replies)
Discussion started by: yb4779
0 Replies

4. UNIX for Dummies Questions & Answers

Tru64 - how can you determine the package where a file or binary belongs to?

Dear linux-unix users, I hope that one of you will be able to help me. How can I determine to which package a file or binary belongs to. With solaris/linux package managers you can easely determine this but i cant find the way how to do this on tru64. Any help would greatly be appreciated.... (0 Replies)
Discussion started by: Crazy_lenny
0 Replies

5. Linux

how to restore original package after uninstalling the upgraded package using rpm

have following package installed rpm -qa |grep ADMIN It will give the following package installed: ADMIN-4.0.0.1 Now I will upgrade the ADMIN package using the following command. rpm --upgrade ADMIN-4.1.0.1 It will upgrade the ADMIN packagge to ADMIN-4.1.0.1 Now I want that... (0 Replies)
Discussion started by: amitpansuria
0 Replies

6. Solaris

How to determine which SIP a package belongs

Hi Folks, Is there anyway I can determine the package set (or SIP) that a package belongs to. It doesn't seem that pkginfo does it?? I'm trying to remove a whole lot of unecessary packages, and it would be far more convenient if I could remove whole sets at a time instead of indivdual packages.... (0 Replies)
Discussion started by: brizrobbo
0 Replies

7. Solaris

Determine last reboot when wtmp broken

Hi - How can I determine the time my system was last booted when my "wtmp" file is broken? (It is being cleaned out incorrectly, I'mm working on that issue) ie uptime shows invalid details and who -b shows "nothing at all" is there a shutdown log somewhere that may indicat the last re-boot? (3 Replies)
Discussion started by: Andrek
3 Replies

8. AIX

how to pre-determine if a reboot is required?

given any specific fix, how can I determine if the machine will require a reboot? (I don't have a window for downtime) obvious fix's to the kernel / lvm will require a reboot ... bos.rte files etc... is there a tool or command that I am able to run against a specific IY that will inform me... (4 Replies)
Discussion started by: A Stewart
4 Replies
Login or Register to Ask a Question