.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "DNF5-NEEDS-RESTARTING" "8" "Apr 18, 2025" "" "dnf5" .SH NAME dnf5-needs-restarting \- Needs-restarting Command .SH SYNOPSIS .sp \fBdnf5 needs\-restarting [\-\-services | \-s]\fP .SH DESCRIPTION .sp 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. .sp 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. .SH OPTIONS .INDENT 0.0 .TP .B \fB\-s, \-\-services\fP .nf 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. .fi .sp .UNINDENT .SH AUTHOR See AUTHORS.md in dnf5 source distribution. .SH COPYRIGHT Contributors to the dnf5 project. .\" Generated by docutils manpage writer. .