Keep a local repository of system rpms using the commands on fc41 QEMU/KVM virtual machine.
---
dnf repomanage --old . |xargs rm -rf cd ../ createrepo_c --update -c cachedir Packages
---
After the latest system update get the message
Unknown argument "repomanage" for command "dnf5". Add "--help" for more information about the arguments. It could be a command provided by a plugin, try: dnf5 install 'dnf5-command(repomanage)' Temporary repodata directory Packages/.repodata/ already exists! (Another createrepo process is running?)