On 4 Nov 2024, at 22:24, Stephen Morris <steve.morris.au@gmail.com> wrote:

Sudo needs-restarting --services tells me nothing which apparently is normal if there are no "important" packages (the man page does provide a url that shows a list of packages that are checked) or services that need restarting.

I found issues with the needs-restarting logic in dnf4 and not use this as the most reliable query.

dnf needs-restarting --services --reboot hint

I found that both options were needed. I also check if the kernel was in the dnf update
that I will have done just before this query.

The bug in dnf4 was that it's logic for --reboothint was buggy and sometimes
it would not suggest a reboot was needed. It was comparing dates that do not mean
what the dnf authors thought they did. I do not know if this is fix for dnf5.

Barry