Re: List available packages in a repo

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

 



Patrick O'Callaghan wrote:
> On Thu, 2025-06-05 at 23:27 +0100, Patrick O'Callaghan wrote:
>>> My conceptual problem is that this makes no logical sense. If I don't
>>> include '--available' than I get a long list of packages which are
>>> *not* from the repo I explicitly asked for. This violates the venerable
>>> Principle Of Least Astonishment.
>> 
>> Not wishing to beat a dead horse, but in 'man dnf' we find:
>> 
>>        --repo=REPO_ID,...
>>               Enable just specified repositories.
>>               This is a list option which can be specified multiple times.
>>               Accepted values are ids, or a glob of ids.
>> 
>> so I think my interpretation is correct and the actual behaviour is a
>> bug. I'll consider filing it in BZ.
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=2370520

I don't know that I agree or if it will be changed, but you
can certainly argue it either way. :)

Essentially, the list command behaves as though '--installed
--available' are passed if neither are given.  Changing that
now would change behavior that has been in place for many,
many years.

In the early days of yum, there wasn't a way to filter the
installed package set based on what repo it was installed
from, as the information wasn't recorded.  That has changed,
of course.  But I suspect that's at least partly the reason
the list command behaves as it does.

Changing the behavior others have come to expect isn't a
solid win all around.  If it were being designed today, this
would be a good opportunity to make that case, but I am not
sure that changing it now is worth the friction it will
cause.

If anything, maybe the documentation for the list command
can be improved to make it clearer how things behave.

-- 
Todd

Attachment: signature.asc
Description: PGP signature

-- 
_______________________________________________
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