Manage a directory of rpm packages.
dnf repomanage [<optional-options>] [<options>] <path>
repomanage prints newest or oldest packages in specified directory for easy piping to xargs or similar programs.
Set what packages is displayed.
The following are mutually exclusive, i.e. only one can be specified. If no options specified - --new activated.
Control how packages are displayed in the output.
Display newest packages in current directory:
dnf repomanage --new .
Display 2 newest packages in requires “home” directory:
dnf repomanage --new --keep 2 ~/
Display older package separated by space in current directory:
dnf repomanage --old --space .