Re: What replaces --allowerasing in dnf5?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/25/24 05:41, Will McDonald wrote:
On Fri, 25 Oct 2024 at 13:16, ToddAndMargo via users <users@xxxxxxxxxxxxxxxxxxxxxxx <mailto:users@xxxxxxxxxxxxxxxxxxxxxxx>> 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.

Wow.  It did not sink in.  This especially did not make
sense to me as when I do it from Raku (Perl 6), it
lets me parse the command line in any order I want
(use Getopt::Long;  # get-options).

Thank you!
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux