Debian Codegraph @

upstream/opensuse-leap-16-1/man8/dnf5-history.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-HISTORY" "8" "Apr 29, 2025" "" "dnf5"
31 .SH NAME
32 dnf5-history \- History Command
33 .SH SYNOPSIS
34 .sp
35 \fBdnf5 history <subcommand> [options] [<transaction\-spec>]\fP
36 .SH DESCRIPTION
37 .sp
38 The \fBhistory\fP command in \fBDNF5\fP allows the user to view what has happened in past transactions
39 and offers several operations on these transactions, like undoing and redoing them. In order to
40 use the transactions in these commands, it is assumed that they were committed while using the
41 \fBhistory_record\fP configuration option.
42 .sp
43 For more information about \fB<transaction\-spec>\fP see
44 \fBdnf5\-specs(7)\fP, \fI\%Patterns specification\fP\&.
45 .SH SUBCOMMANDS
46 .INDENT 0.0
47 .TP
48 .B \fBlist\fP
49 .nf
50 List info about recorded transactions in the system.
51 If no \fB<transaction\-spec>\fP is specified it uses all transactions.
52 .fi
53 .sp
54 .TP
55 .B \fBinfo\fP
56 .nf
57 Print details about specific transactions.
58 If no \fB<transaction\-spec>\fP is specified it uses the last transaction.
59 .fi
60 .sp
61 .TP
62 .B \fBundo\fP
63 .nf
64 Revert all actions from the specified transaction.
65 Exactly one transaction must be specified by \fB<transaction\-spec>\fP\&.
66 .fi
67 .sp
68 .TP
69 .B \fBredo\fP
70 .nf
71 Repeat the specified transaction.
72 Automatically uses \fB\-\-ignore\-extras\fP and \fB\-\-ignore\-installed\fP\&.
73 Unlike the rest of history commands it overrides reasons for transaction packages that are already installed.
74 This command is useful to finish interrupted transactons.
75 Exactly one transaction must be specified by \fB<transaction\-spec>\fP\&.
76 .fi
77 .sp
78 .TP
79 .B \fBrollback\fP
80 .nf
81 Undo all transactions performed after the specified transaction.
82 Exactly one transaction must be specified by \fB<transaction\-spec>\fP\&.
83 .fi
84 .sp
85 .TP
86 .B \fBstore\fP
87 .nf
88 Store the transaction into a directory.
89 If no \fB<transaction\-spec>\fP is specified it uses the last transaction.
90 .fi
91 .sp
92 .UNINDENT
93 .SH OPTIONS FOR LIST AND INFO
94 .INDENT 0.0
95 .TP
96 .B \fB\-\-reverse\fP
97 .nf
98 Reverse the order of transactions in the output.
99 .fi
100 .sp
101 .TP
102 .B \fB\-\-contains\-pkgs=PACKAGE_NAME,...\fP
103 .nf
104 Show only transactions containing packages with specified names.
105 This is a list option. Globs are supported.
106 .fi
107 .sp
108 .UNINDENT
109 .SH OPTIONS FOR UNDO, ROLLBACK AND REDO
110 .INDENT 0.0
111 .TP
112 .B \fB\-\-skip\-unavailable\fP
113 .nf
114 Allow skipping packages actions that are not possible perform.
115 .fi
116 .sp
117 .UNINDENT
118 .SH OPTIONS FOR UNDO AND ROLLBACK
119 .INDENT 0.0
120 .TP
121 .B \fB\-\-ignore\-extras\fP
122 .nf
123 Don\(aqt consider extra packages pulled into the transaction as errors.
124 They will still be reported as warnings.
125 .fi
126 .sp
127 .TP
128 .B \fB\-\-ignore\-installed\fP
129 .nf
130 Don\(aqt consider mismatches between installed and stored transaction packages as errors.
131 They will still be reported as warnings.
132 Using this option can result in an empty transaction.
133 For install actions skip already installed packages.
134 For upgrade actions skip groups or environments that are not installed.
135 For remove actions skip not installed packages/groups/environments.
136 .fi
137 .sp
138 .UNINDENT
139 .SH EXAMPLES
140 .INDENT 0.0
141 .TP
142 .B \fBdnf5 history list\fP
143 .nf
144 List all transactions, where the most recent transaction is printed first.
145 .fi
146 .sp
147 .TP
148 .B \fBdnf5 history info 4\fP
149 .nf
150 Show detailed info about the fourth transaction.
151 .fi
152 .sp
153 .TP
154 .B \fBdnf5 history info last\fP
155 .nf
156 Show detailed info about the last transaction.
157 .fi
158 .sp
159 .TP
160 .B \fBdnf5 history info last\-1\fP
161 .nf
162 Show detailed info about the second to last transaction.
163 .fi
164 .sp
165 .TP
166 .B \fBdnf5 history list 4..8\fP
167 .nf
168 List transactions with id in 4 to 8 range.
169 .fi
170 .sp
171 .TP
172 .B \fBdnf5 history undo last\fP
173 .nf
174 Undo the last transaction.
175 .fi
176 .sp
177 .TP
178 .B \fBdnf5 history undo 4 \-\-ignore\-extras\fP
179 .nf
180 Undo the fourth transaction ignoring extra packages pulled into the reverting transaction.
181 .fi
182 .sp
183 .UNINDENT
184 .SH SEE ALSO
185 .INDENT 0.0
186 .INDENT 3.5
187 .nf
188 \fBdnf5\-specs(7)\fP, \fI\%Patterns specification\fP
189 .fi
190 .sp
191 .UNINDENT
192 .UNINDENT
193 .SH AUTHOR
194 See AUTHORS.md in dnf5 source distribution.
195 .SH COPYRIGHT
196 Contributors to the dnf5 project.
197 .\" Generated by docutils manpage writer.
198 .