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
signature.asc
Description: PGP signature
-- _______________________________________________ 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