On Fri, 25 Oct 2024 at 13:16, ToddAndMargo via users < users@lists.fedoraproject.org> wrote:
> > On Fri, 25 Oct 2024 at 11:57, ToddAndMargo via users > I am confused. When I tried using --allowerasing, > I got: > > Unknown argument "--allowerasing" > > The --allowerasing allowed me to remove the older of two > rpm of the same revision but different releases > > # rpm -qa systemd > systemd-254.18-1.fc39.x86_64 > systemd-255.13-1.fc40.x86_64 > It's the ordering of the command and how DNF is parsing it that's the problem. Compare, the following two commands, running in an f41 container: > [root@94a0d274cbcb /]# dnf5 --allowerasing upgrade > Unknown argument "--allowerasing" for command "dnf5". Add "--help" for > more information about the arguments. To: > [root@94a0d274cbcb /]# dnf5 upgrade --allowerasing > Updating and loading repositories: > Repositories loaded. > Nothing to do. With DNF5 "--allowerasing upgrade" does not work. "upgrade --allowerasing" does work. I tried to make that clear by showing both the failing scenario, and the working scenario. And making *Unknown argument "--allowerasing" for command "dnf5"*. bold, but your mail agent might not be rendering that clearly. Basically the first form is passing --allowerasing to dnf5, the 2nd form is passing it to dnf5 upgrade and that modularity of parsing appears to me more rigid and proscriptive with DNF5.
-- _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue