1DNF-REPOMANAGE(8)              dnf-plugins-core              DNF-REPOMANAGE(8)
2
3
4

NAME

6       dnf-repomanage - DNF repomanage Plugin
7
8       Manage a repository or a simple directory of rpm packages.
9

SYNOPSIS

11       dnf repomanage [<optional-options>] [<options>] <path>
12

DESCRIPTION

14       repomanage prints newest or older packages in a repository specified by
15       <path> for easy piping to xargs or similar  programs.  In  case  <path>
16       doesn't contain a valid repodata, it is searched for rpm packages which
17       are then used instead.  If the repodata are  present,  repomanage  uses
18       them  as  the  source  of  truth, it doesn't verify that they match the
19       present rpm packages. In fact, repomanage can run with just  the  repo‐
20       data, no rpm packages are needed.
21
22       In order to work correctly with modular packages, <path> has to contain
23       repodata with modular metadata. If modular content is present, repoman‐
24       age prints packages from newest or older stream versions in addition to
25       newest or older non-modular packages.
26
27   Options
28       All general DNF options are accepted, see Options  in  dnf(8)  for  de‐
29       tails.
30
31       The  following  options  set what packages are displayed. These options
32       are mutually exclusive, i.e. only one can be specified. If no option is
33       specified, the newest packages are shown.
34
35       --old  Show older packages (for a package or a stream show all versions
36              except the newest one).
37
38       --oldonly
39              Show older packages (same as --old, but exclude the newest pack‐
40              ages even when it's included in the older stream versions).
41
42       --new  Show newest packages.
43
44       The following options control how packages are displayed in the output:
45
46       -s, --space
47              Print resulting set separated by space instead of newline.
48
49       -k <keep-number>, --keep <keep-number>
50              Limit the resulting set to newest <keep-number> packages.
51

EXAMPLES

53       Display newest packages in current repository (directory):
54
55          dnf repomanage --new .
56
57       Display 2 newest versions of each package in "home" directory:
58
59          dnf repomanage --new --keep 2 ~/
60
61       Display  oldest  packages separated by space in current repository (di‐
62       rectory):
63
64          dnf repomanage --old --space .
65

AUTHOR

67       See AUTHORS in your Core DNF Plugins distribution
68
70       2022, Red Hat, Licensed under GPLv2+
71
72
73
74
754.2.1                            May 27, 2022                DNF-REPOMANAGE(8)
Impressum