what has 'yum update' done?

Reindl Harald h.reindl at thelounge.net
Sun Jul 14 09:45:46 UTC 2013


Am 14.07.2013 09:42, schrieb lee:
> Joe Zeff <joe at zeff.us> writes:
>> On 07/13/2013 03:51 PM, lee wrote:
>>> Automatic updates?  I'd rather not do that since it sometimes seems
>>> advisable to reboot after an update.
>>
>> If you want to be sure, run needs-restarting in a terminal, as
>> root. About the only thing it doesn't list that I've seen is the
>> kernel, but for most other stuff, it will let you know what programs
>> need to be restarted because something they use has been updated.
> 
> That sounds very interesting.  It doesn't restart or reboot anything and
> only tells you what you should restart?  That would be really useful.

look below after "yum reinstall php\*"
you see pretty clear that you should restart apache

you achive nearly the same with "lsof" and filter of deleted, open files

[root at srv-rhsoft:~]$ needs-restarting
4215 : /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
3416 : /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
3417 : /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
3415 : /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
9584 : /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
3327 : /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
3419 : /usr/sbin/httpd -D srv-rhsoft -D FOREGROUND
______________________________________________________

[root at srv-rhsoft:~]$ lsof | grep DEL | grep /usr
httpd    3327    root  DEL   REG   9,1    525967 /usr/lib64/php/modules/uploadprogress.so
httpd    3327    root  DEL   REG   9,1    524783 /usr/lib64/php/modules/zip.so
httpd    3327    root  DEL   REG   9,1    525775 /usr/lib64/php/modules/tidy.so
httpd    3327    root  DEL   REG   9,1    526916 /usr/lib64/php/modules/soap.so
httpd    3327    root  DEL   REG   9,1    526065 /usr/lib64/php/modules/mysqli.so
httpd    3327    root  DEL   REG   9,1    526908 /usr/lib64/php/modules/mcrypt.so
httpd    3327    root  DEL   REG   9,1    524737 /usr/lib64/php/modules/json.so
httpd    3327    root  DEL   REG   9,1    525447 /usr/lib64/php/modules/imap.so
httpd    3327    root  DEL   REG   9,1    527368 /usr/lib64/php/modules/imagick.so

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20130714/432d2f20/attachment.sig>


More information about the users mailing list