Debian Codegraph @

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