.\" 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-OFFLINE" "8" "Apr 18, 2025" "" "dnf5" .SH NAME dnf5-offline \- Offline Command .SH SYNOPSIS .sp \fBdnf5 offline [options]\fP .SH DESCRIPTION .sp The \fBoffline\fP command is used to manage \(dqoffline\(dq transactions\-\-\-transactions that run when the system is booted into a minimal environment. Running a transaction in this stripped\-down environment can be safer than running it when the system is booted normally since the transaction is less likely to interfere with running processes. .sp Offline transactions can be initiated by specifying the \fB\-\-offline\fP flag on any operation (\fBinstall\fP, \fBupgrade\fP, \fBdistro\-sync\fP, etc.), or via \fBdnf5 system\-upgrade download\fP\&. Once an offline transaction is initiated, run \fBdnf5 offline reboot\fP to reboot and begin the transaction. .sp Data for offline transactions is stored under the \(dqsystem state\(dq directory at \fB/usr/lib/sysimage/libdnf5/offline\fP\&. .SH SUBCOMMANDS .INDENT 0.0 .TP .B \fBclean\fP .nf Removes any stored offline transaction and deletes cached package files. .fi .sp .TP .B \fBlog\fP .nf Used to see a list of boots during which an offline transaction was attempted, or show the logs from an attempted offline transaction. The logs for one of the boots can be shown by specifying one of the numbers in the first column with the \fB\-\-number\fP argument. Negative numbers can be used to number the boots from last to first. For example, \fBlog \-\-number=\-1\fP can be used to see the logs for the last offline transaction. .fi .sp .TP .B \fBreboot\fP .nf Prepares the system to perform the offline transaction and reboots to start the transaction. This command can only be run after an offline transaction is initiated (e.g. by \fBdnf5 system\-upgrade download\fP). .fi .sp .TP .B \fBstatus\fP .nf Shows the status of the current offline transaction. .fi .sp .TP .B \fB_execute\fP .nf Execute the transaction in the offline environment. .fi .sp .sp \fBWARNING:\fP .INDENT 7.0 .INDENT 3.5 For internal use only. Not intended to be run by the user. .UNINDENT .UNINDENT .UNINDENT .SH OPTIONS .INDENT 0.0 .TP .B \fB\-\-number=\fP .nf Show the log specified by the number. Run \fBdnf5 offline log\fP with \fB\-\-number\fP first to get a list of logs to choose from. Used with the \fBlog\fP subcommand. .fi .sp .TP .B \fB\-\-poweroff\fP .nf The system will power off after the transaction is completed instead of restarting. If the transaction failed, the system will reboot instead of powering off even with this flag. Used with the \fBreboot\fP subcommand. .fi .sp .UNINDENT .SH EXAMPLES .INDENT 0.0 .TP .B \fBdnf5 install \-\-offline hello\fP .nf Prepares the installation of the \fBhello\fP package as an offline transaction. .fi .sp .TP .B \fBdnf5 offline status\fP .nf Shows the status of the current offline transaction. .fi .sp .TP .B \fBdnf5 offline reboot \-\-poweroff\fP .nf Reboot and run the offline transaction, then power the system off after the transaction is complete. .fi .sp .TP .B \fBdnf5 offline log\fP .nf List boots during which an offline transaction was attempted. .fi .sp .TP .B \fBdnf5 offline log \-\-number=\-1\fP .nf View the log from the latest boot during which an offline transaction was attempted. .fi .sp .UNINDENT .SH SEE ALSO .INDENT 0.0 .INDENT 3.5 .nf \fBdnf5\-system\-upgrade(8)\fP, \fI\%System\-upgrade command\fP \X'tty: link https://www.freedesktop.org/wiki/Software/systemd/SystemUpdates'\fI\%https://www.freedesktop.org/wiki/Software/systemd/SystemUpdates\fP\X'tty: link' .fi .sp .UNINDENT .UNINDENT .SH AUTHOR See AUTHORS.md in dnf5 source distribution. .SH COPYRIGHT Contributors to the dnf5 project. .\" Generated by docutils manpage writer. .