Debian Codegraph @

upstream/opensuse-leap-16-1/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" "Apr 29, 2025" "" "dnf5"
31 .SH NAME
32 dnf5-needs-restarting \- Needs-restarting Command
33 .SH SYNOPSIS
34 .sp
35 \fBdnf5 needs\-restarting [\-\-services | \-s]\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\-s, \-\-services\fP
45 .nf
46 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.
47 .fi
48 .sp
49 .UNINDENT
50 .SH AUTHOR
51 See AUTHORS.md in dnf5 source distribution.
52 .SH COPYRIGHT
53 Contributors to the dnf5 project.
54 .\" Generated by docutils manpage writer.
55 .