On 23. 07. 25 13:48, Jan Stanek wrote:
On Wed, Jul 23, 2025 at 1:45 PM Miro Hrončok <mhron...@redhat.com> wrote:
I'd go with alternative-for(nodejs-bin). There's even code in dnf that will
tell you the options if you try to install nodejs-bin (unless the metapackage
is called that).

You can try it out in RHEL 8. But the code made it to dnf5 as well [1].

    $ mock -r rhel-8-x86_64 --dnf-cmd install python
    ...
    No match for argument: python
    There are following alternatives for "python": python2, python3.11,
python3.12, python36, python38, python39

[1]
https://github.com/rpm-software-management/dnf5/blob/5.2.15.0/libdnf5/base/transaction.cpp#L294

Nice! Now I'm glad that I asked, so I do not reinvent the wheel.

Is the alternative-for(X) mentioned anywhere in docs, or is it one of
those tribal-knowledge bits?

Maybe in dnf docs? I don't really know. Maybe this needs a documentation in the Fedora packaging guidelines. When to use it etc.

--
Miro Hrončok
--
Phone: +420777974800
Fedora Matrix: mhroncok

--
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-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/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to