After which updates do I need to restart the app/system?
Hello everyone,
I love updating binaries,apps and the system itself via pacman. How ever, I often ask myself:
I just updated e.g. firefox or glib or... shouldn't I restart the app now or all apps that rely on that binary?
.
Also: Should I close e.g. firefox before starting the update?
About this post
- Posted
- Archived
- Score
- 16 · 100% up
- Kind
- Text
- ID
- 52we58
20 comments
You might find overdue interesting:
Very cool! Thanks for sharing!
I recently started using pacman-ps. It works in a similar way, except it handles all processes, not just systemd services. It shows the path of the upgraded file, the process using/referencing it, and the pacman package which owns it. I highly recommend it!
Thanks! So much choice: overdue, pacman-ps and tracer.
No, you don't need to reboot your system unless you updated the kernel and want to use that kernel. Restart the applications if you want the updated version. You shouldn't need to close the application before starting the update--just restart it after if you want the update to apply.
KDE Plasma also needs to be restarted after updates, at least on my computer.
You probably have a GLX driver that gets updated. I have the same issue.
Install
tracerfrom the AUR and runsudo tracer -e.Yes.
The more complex the application the more likely to cause issues. For example chromium constantly spawns new processes and if it does so mid update a tab will crash or something, undefined behavior territory. Up to you how cautious you want to be but offline updates are a pretty big topic and
gnome-softwaredoes it this way for example.How does
tracercompare tooverduebesides that it does not seem to come with a hook?overdue looks a lot more simple of a solution, tracer handles a lot more situations. I can add a hook to tracer its not like thats a difficult task..
don't reboot it, just patch
Not really applicable yet.
Yeah, can't wait for Minix 3 to make it big :-)
This is a really tricky question to answer but the basic guide lines are If there is an update to the kernel or video drivers I reboot, most applications i.e. firefox just closing the application and opening it again will load the new version. Desktop environments usually logout and login is good enough.
Version numbers is another thing to consider, if its just a minor revision change its probably just a small patch and will work fine without a reboot, a major or subversion change probably means there could be an api change which means other apps that depend on this (that were probably also updated) need to use the new api so a reboot ensures all services and applications are reloaded.
Deleted before we saved it.
... or any of their dependencies. Of you want to play it save: a also restart anything your applications interact with (e.g. via dbus).
Rebooting is for adding new hardware (and niche cases, like a kernel update)