1DNF5-NEEDS-RESTARTING(8) dnf5 DNF5-NEEDS-RESTARTING(8)
2
3
4
6 dnf5-needs-restarting - Needs-restarting Command
7
9 dnf5 needs-restarting [--services | -s]
10
12 The needs-restarting command determines whether the system should be
13 rebooted to fully apply changes from package installations and up‐
14 grades. Without any options, dnf5 needs-restarting will report whether
15 any important packages were installed or upgraded since boot. This set
16 of important packages includes the kernel, systemd, each package listed
17 here: https://access.redhat.com/solutions/27943, and any package marked
18 with a reboot_suggested advisory.
19
20 The needs-restarting command will exit with code 1 if a reboot is rec‐
21 ommended, or, when invoked with --services, if any systemd service
22 needs restarting. If no action is recommended, needs-restarting will
23 exit with code 0.
24
26 -s, --services
27 List systemd services that need restarting. If the package that
28 provides the service, or any of its dependencies, have been up‐
29 dated since the service started, then restarting the service
30 will be recommended. Note that this approach is quite aggressive
31 to recommend a restart when one may not be strictly necessary.
32
34 See AUTHORS.md in dnf5 source distribution.
35
37 Contributors to the dnf5 project.
38
39
40
41
42 Nov 24, 2023 DNF5-NEEDS-RESTARTING(8)