Debian Codegraph @

upstream/mageia-cauldron/man8/dnf5-needs-restarting.8

raw
1 .\" Man page generated from reStructuredText.
2 .
3 .
4 .nr rst2man-indent-level 0
5 .
6 .de1 rstReportMargin
7 \\$1 \\n[an-margin]
8 level \\n[rst2man-indent-level]
9 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
10 -
11 \\n[rst2man-indent0]
12 \\n[rst2man-indent1]
13 \\n[rst2man-indent2]
14 ..
15 .de1 INDENT
16 .\" .rstReportMargin pre:
17 . RS \\$1
18 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
19 . nr rst2man-indent-level +1
20 .\" .rstReportMargin post:
21 ..
22 .de UNINDENT
23 . RE
24 .\" indent \\n[an-margin]
25 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
26 .nr rst2man-indent-level -1
27 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
28 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
29 ..
30 .TH "DNF5-NEEDS-RESTARTING" "8" "May 10, 2026" "" "dnf5"
31 .SH NAME
32 dnf5-needs-restarting \- Needs-restarting Command
33 .SH SYNOPSIS
34 .sp
35 \fBdnf5 needs\-restarting [\-p | \-\-processes [\-e | \-\-exclude\-services]] [\-s | \-\-services] [\-r | \-\-reboothint]\fP
36 .SH DESCRIPTION
37 .sp
38 The \fBneeds\-restarting\fP command determines whether the system should be rebooted to fully apply changes from package installations and upgrades. Without any options, \fBdnf5 needs\-restarting\fP will report whether any important packages were installed or upgraded since boot. This set of important packages includes the kernel, systemd, each package listed here: \X'tty: link https://access.redhat.com/solutions/27943'\fI\%https://access.redhat.com/solutions/27943\fP\X'tty: link', and any package marked with a \fBreboot_suggested\fP advisory.
39 .sp
40 The \fBneeds\-restarting\fP command will exit with code 1 if a reboot is recommended, or, when invoked with \fB\-\-services\fP, if any systemd service needs restarting. If no action is recommended, \fBneeds\-restarting\fP will exit with code 0.
41 .SH OPTIONS
42 .INDENT 0.0
43 .TP
44 .B \fB\-p, \-\-processes\fP
45 .nf
46 List processes that need restarting. If the package that provides the executable running, or any of its dependencies, have been updated since the process started, then restarting the process will be recommended.
47 .fi
48 .sp
49 .TP
50 .B \fB\-e, \-\-exclude\-services\fP
51 .nf
52 Used with the \fB\-p, \-\-processes\fP option and will filter out any processes that are handled by systemd services.
53 .fi
54 .sp
55 .TP
56 .B \fB\-s, \-\-services\fP
57 .nf
58 List systemd services that need restarting. If the package that provides the service, or any of its dependencies, have been updated since the service started, then restarting the service will be recommended. Note that this approach is quite aggressive to recommend a restart when one may not be strictly necessary.
59 .fi
60 .sp
61 .TP
62 .B \fB\-r, \-\-reboothint\fP
63 .nf
64 Has no effect, kept for compatibility with DNF 4. \(dqdnf4 needs\-restarting \-r\(dq provides the same functionality as \(dqdnf5 needs\-restarting\(dq.
65 .fi
66 .sp
67 .UNINDENT
68 .SH AUTHOR
69 See AUTHORS.md in dnf5 source distribution.
70 .SH COPYRIGHT
71 Contributors to the dnf5 project.
72 .\" Generated by docutils manpage writer.
73 .