I’ve been using Fedora Workstation on my Lenovo Laptop for a pretty long time. I have mostly used the Cinnamon DE and recently installed KDE and will probably stick to that. For updating between semi-annual release upgrades, I have used “dnf update” on the command line as well as the dnfdragora-updater, After installing KDE, I also use the Discovery Updater. Over the years, I don’t think I have ever been instructed to reboot after installing updates using any of these methods. And, I don’t recall a single instance of having update related issues. Also, I don’t make it a regular practice of rebooting. I usually just close the lid and let it sleep until I’m ready to go again. Recently I came across an article suggesting that it is best, if not necessary, to use “offline-upgrade download” and “offline-upgrade reboot”. I’ve done it that way and, of course, it works just fine, but I find it a bit of a nuisance especially since my screen resolution is quite high and I can barely read the text when I’m in offline terminal mode. Is this really necessary? Thanks.
Whichever way you update is your choice.
It is not required to use the offline upgrade tools, nor is it always required to reboot.
However, there are some conditions where rebooting is beneficial.
- Kernel upgrades require a reboot to load the new kernel
- driver or firmware upgrades require a reboot to load the new driver or firmware
- upgrades of things that are part of the DE can benefit from a reboot
- if you are using a VM then updates to qemu or libvirt would require a reload to ensure all parts are in sync.
Net answer:
reboot as you see fit.
The conditions above are guidelines and the offline updates are intended to combine the updates with a reboot so you do not even need to be aware when packages that should be followed by a reboot are updated.
Personally I do not use the offline update tools (never have) and I disable the automatic updates done by the gnome software manager. I prefer to manage this myself.
Thanks.
Regarding the kernel upgrades, I have a dual boot setup with Windows and GRUB menu always shows the new Kernel and the “About the System” listing always shows the new Kernel after an update without rebooting. Doesn’t that indicate that it is properly installed?
Also, if I do updates as I have been and then just reboot normally or log out and in, would that do the same thing?
‘Installed’ and ‘running’ are two completely different things.
A kernel can be installed but until you reboot it cannot be loaded and running.
The kernel is loaded only after it has been installed and only during the boot process when you reboot.
Doing an upgrade by whatever method you choose, then rebooting loads the newest kernel by default.
Logging out then back in on the same OS does not load a new kernel.
When you’re switching from Fedora to Windows and back in a dual-boot setup, you already have your system reboots.
To properly apply updates, especially security updates, you must restart all affected processes and services, see:
- DNF needs-restarting Plugin — dnf-plugins-core 4.4.2-1 documentation
- DNF tracer Plugin — dnf-plugins-extras 4.1.0-1 documentation
Doing that manually can be problematic, so a reboot is recommended.
OK. Thanks for all the replies. I guess I need to change my habits a bit. I think it says a lot for Fedora that I can do it wrong for so long without having problems.
For reference, here is the complete guide for upgrading between releases:
Therein lies my error. I use that guide for upgrading to the next release, but have always just used “sudo dnf upgrade” for interim updates. I will be changing that.
Thanks.
This is the main command line upgrade process except for doing release version upgrades.
The system-upgrade plugin is for the release version upgrades.
Other than the system-upgrade plugin it seems you have been doing just fine.
What is wrong with that? That is exactly what I would do and continue to do.
Yes. What I meant by “changing that” is that I will be following up with a reboot to make sure everything is properly installed.
To what extent do you allow available update accumulate before doing an dnf update? 20, 50, 100, more?
It is up to you how often you update. Sometimes I do so daily and other times it may be a week or more between updates. I seldom wait more than about 10 days between updates.
If I have had problems since the last update and I know a bug fix is out or pending then I update more frequently.
Thanks