On Sun, Nov 3, 2024 at 5:14 PM Patrick O'Callaghan pocallaghan@gmail.com wrote:
On Sun, 2024-11-03 at 17:02 -0500, Jeffrey Walton wrote:
On Sun, Nov 3, 2024 at 4:57 PM Stephen Morris steve.morris.au@gmail.com wrote:
[...]
Does this mean that with the tracer addin no longer working there is no way to get the equivalent functionality with dnf at update time?
According to the dnf5 man page, you should install the 'dnf5-plugins' package. Then the 'needs-restarting' command is available.
Also see https://dnf5.readthedocs.io/en/latest/dnf5.8.html and https://dnf5.readthedocs.io/en/latest/dnf5_plugins/needs_restarting.8.html#needs-restarting-plugin-ref-label.
As I posted in a separate thread on Friday last, I think that both the command 'tracer' and the corresponding dnf5 plugin are broken. I've been waiting to see if anyone contradicts this but so far no-one has, so I may post a BZ report. It seems to me a serious regression.
Looks OK to me for the case that no reboot is necessary. The behavior follows what the man page says.
$ dnf needs-restarting Updating and loading repositories: Fedora 41 - x86_64 100% | 10.8 MiB/s | 98.1 MiB | 00m09s Fedora 41 - x86_64 - Updates 100% | 11.4 MiB/s | 20.4 MiB | 00m02s Fedora 41 OpenH264 (from Cisco) - x86_ 100% | 6.0 KiB/s | 8.1 KiB | 00m01s Repositories loaded. No core libraries or services have been updated since boot-up. Reboot should not be necessary.
$ echo $? 0
But I don't have a machine that needs a reboot at the moment, so that case was not tested. A kernel update should tickle that case.
Jeff