Debian Codegraph @

upstream/debian-unstable/man8/dnf4-repomanage.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 "DNF4-REPOMANAGE" "8" "Sep 27, 2025" "4.10.1" "dnf-plugins-core"
31 .SH NAME
32 dnf4-repomanage \- DNF repomanage Plugin
33 .sp
34 Manage a repository or a simple directory of rpm packages.
35 .SH SYNOPSIS
36 .sp
37 \fBdnf repomanage [<optional\-options>] [<options>] <path>\fP
38 .SH DESCRIPTION
39 .sp
40 \fIrepomanage\fP prints newest or older packages in a repository specified by <path> for easy piping to xargs or similar programs. In case <path> doesn’t contain a valid repodata, it is searched for rpm packages which are then used instead.
41 If the repodata are present, \fIrepomanage\fP uses them as the source of truth, it doesn’t verify that they match the present rpm packages. In fact, \fIrepomanage\fP can run with just the repodata, no rpm packages are needed.
42 .sp
43 In order to work correctly with modular packages, <path> has to contain repodata with modular metadata. If modular content is present, \fIrepomanage\fP prints packages from newest or older stream versions in addition to newest or older non\-modular packages.
44 .SS Options
45 .sp
46 All general DNF options are accepted, see \fIOptions\fP in \fBdnf(8)\fP for details.
47 .sp
48 The following options set what packages are displayed. These options are mutually exclusive, i.e. only one can be specified. If no option is specified, the newest packages are shown.
49 .INDENT 0.0
50 .TP
51 .B \fB\-\-old\fP
52 Show older packages (for a package or a stream show all versions except the newest one).
53 .TP
54 .B \fB\-\-oldonly\fP
55 Show older packages (same as –old, but exclude the newest packages even when it’s included in the older stream versions).
56 .TP
57 .B \fB\-\-new\fP
58 Show newest packages.
59 .UNINDENT
60 .sp
61 The following options control how packages are displayed in the output:
62 .INDENT 0.0
63 .TP
64 .B \fB\-s\fP, \fB\-\-space\fP
65 Print resulting set separated by space instead of newline.
66 .TP
67 .B \fB\-k <keep\-number>\fP, \fB\-\-keep <keep\-number>\fP
68 Limit the resulting set to newest \fB<keep\-number>\fP packages.
69 .UNINDENT
70 .SH EXAMPLES
71 .sp
72 Display newest packages in current repository (directory):
73 .INDENT 0.0
74 .INDENT 3.5
75 .sp
76 .EX
77 dnf repomanage \-\-new .
78 .EE
79 .UNINDENT
80 .UNINDENT
81 .sp
82 Display 2 newest versions of each package in “home” directory:
83 .INDENT 0.0
84 .INDENT 3.5
85 .sp
86 .EX
87 dnf repomanage \-\-new \-\-keep 2 ~/
88 .EE
89 .UNINDENT
90 .UNINDENT
91 .sp
92 Display oldest packages separated by space in current repository (directory):
93 .INDENT 0.0
94 .INDENT 3.5
95 .sp
96 .EX
97 dnf repomanage \-\-old \-\-space .
98 .EE
99 .UNINDENT
100 .UNINDENT
101 .SH AUTHOR
102 See AUTHORS in your Core DNF Plugins distribution
103 .SH COPYRIGHT
104 2014, Red Hat, Licensed under GPLv2+
105 .\" Generated by docutils manpage writer.
106 .