Debian Codegraph @

upstream/debian-unstable/man8/dnf5-offline.8

raw
1 .\" Man page generated from reStructuredText
2 .\" by the Docutils 0.22.4 manpage writer.
3 .
4 .
5 .nr rst2man-indent-level 0
6 .
7 .de1 rstReportMargin
8 \\$1 \\n[an-margin]
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
11 -
12 \\n[rst2man-indent0]
13 \\n[rst2man-indent1]
14 \\n[rst2man-indent2]
15 ..
16 .de1 INDENT
17 .\" .rstReportMargin pre:
18 . RS \\$1
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
22 ..
23 .de UNINDENT
24 . RE
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30 ..
31 .TH "DNF5-OFFLINE" "8" "May 09, 2026" "" "dnf5"
32 .SH NAME
33 dnf5-offline \- Offline Command
34 .SH SYNOPSIS
35 .sp
36 \fBdnf5 offline <subcommand> [options]\fP
37 .SH DESCRIPTION
38 .sp
39 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.
40 .sp
41 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.
42 .sp
43 Data for offline transactions is stored under the \(dqsystem state\(dq directory at \fB/usr/lib/sysimage/libdnf5/offline\fP\&.
44 .SH SUBCOMMANDS
45 .INDENT 0.0
46 .TP
47 .B \fBclean\fP
48 .nf
49 Removes any stored offline transaction and deletes cached package files.
50 .fi
51 .sp
52 .TP
53 .B \fBlog\fP
54 .nf
55 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.
56 .fi
57 .sp
58 .TP
59 .B \fBreboot\fP
60 .nf
61 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).
62 .fi
63 .sp
64 .TP
65 .B \fBstatus\fP
66 .nf
67 Shows the status of the current offline transaction.
68 .fi
69 .sp
70 .TP
71 .B \fB_execute\fP
72 .nf
73 Execute the transaction in the offline environment.
74 .fi
75 .sp
76 .sp
77 \fBWarning:\fP
78 .INDENT 7.0
79 .INDENT 3.5
80 For internal use only. Not intended to be run by the user.
81 .UNINDENT
82 .UNINDENT
83 .UNINDENT
84 .SH OPTIONS
85 .INDENT 0.0
86 .TP
87 .B \fB\-\-number=<boot number>\fP
88 .nf
89 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.
90 Used with the \fBlog\fP subcommand.
91 .fi
92 .sp
93 .TP
94 .B \fB\-\-poweroff\fP
95 .nf
96 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.
97 Used with the \fBreboot\fP subcommand.
98 .fi
99 .sp
100 .UNINDENT
101 .SH ENVIRONMENT
102 .INDENT 0.0
103 .TP
104 .B \fBDNF_SYSTEM_UPGRADE_NO_REBOOT\fP
105 If set, the system won\(aqt be rebooted or powered off by DNF5 when the normal work flow would do so.
106 .UNINDENT
107 .SH EXAMPLES
108 .INDENT 0.0
109 .TP
110 .B \fBdnf5 install \-\-offline hello\fP
111 .nf
112 Prepares the installation of the \fBhello\fP package as an offline transaction.
113 .fi
114 .sp
115 .TP
116 .B \fBdnf5 offline status\fP
117 .nf
118 Shows the status of the current offline transaction.
119 .fi
120 .sp
121 .TP
122 .B \fBdnf5 offline reboot \-\-poweroff\fP
123 .nf
124 Reboot and run the offline transaction, then power the system off after the transaction is complete.
125 .fi
126 .sp
127 .TP
128 .B \fBdnf5 offline log\fP
129 .nf
130 List boots during which an offline transaction was attempted.
131 .fi
132 .sp
133 .TP
134 .B \fBdnf5 offline log \-\-number=\-1\fP
135 .nf
136 View the log from the latest boot during which an offline transaction was attempted.
137 .fi
138 .sp
139 .UNINDENT
140 .SH SEE ALSO
141 .INDENT 0.0
142 .INDENT 3.5
143 .nf
144 \fBdnf5\-system\-upgrade(8)\fP, System\-upgrade command \%<#\:system-upgrade-command-ref-label>
145 \%<https://\:www\:.freedesktop\:.org/\:wiki/\:Software/\:systemd/\:SystemUpdates>
146 .fi
147 .sp
148 .UNINDENT
149 .UNINDENT
150 .SH Author
151 See AUTHORS.md in dnf5 source distribution.
152 .SH Copyright
153 Contributors to the dnf5 project.
154 .\" End of generated man page.