Ask Your Question
3

How does gnome-software determine when a reboot is needed?

asked 2015-04-24 11:05:15 -0500

donpellegrino gravatar image

I have found that the update process as managed by the GNOME Software application includes prompting for a reboot at times. Manually running yum upgrade never does. It seems that the Software application is using some logic to determine if a reboot is required, and that it is accounting for more than just the case of kernel updates. I prefer to run yum upgrade manually as the download progress is more detailed. Is there a way to get the reboot logic from Software when running yum manually?

edit retag flag offensive close merge delete

Comments

1

How is dnf going to behave in the future? Is the restart really needed? To me, it looks like I never had any problems after updating packages using yum (without restarting).

florian gravatar imageflorian ( 2015-04-24 14:43:14 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
4

answered 2015-04-24 14:23:38 -0500

spot gravatar image

If the package does not have a .desktop file, GNOME Software assumes it needs to reboot in order to update properly. yum contains no such check.

yum-utils contains a tool called "needs-restarting" that will list process-ids that were running before an update transaction was run. This is not the same heuristic that GNOME software is using, but it does provide you a list of services that would be restarted "cleanly" if you rebooted.

I'm not aware of a plugin for yum that shows if any packages without .desktop files were updated in a transaction, but I don't think it wouldn't be terribly difficult to make (says the guy who is not volunteering to write it).

edit flag offensive delete link more

Comments

3

To be a little more exact, it lists those processes that have been updated (or are using a library that's been updated) since the program started. One exception, btw, is the kernel; you just have to know that something such as glibc getting updated means that you need to restart. And, it's best to run needs-restarting as root, because if you don't you'll get a bunch of warnings as it tries to check things in /proc that need root to access. (It still works, though.)

sideburns gravatar imagesideburns ( 2015-04-24 14:41:28 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-04-24 11:05:15 -0500

Seen: 337 times

Last updated: Apr 24 '15