On Thu, 2025-06-05 at 19:48 -0400, Todd Zullinger wrote: > 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. >
Well, no. If "--available" is given explicitly, it *excludes* the installed packages except those from the specified repo. The behaviour is different if "--available" is omitted. > [...] > > If anything, maybe the documentation for the list command > can be improved to make it clearer how things behave. That's probably the most sensible course. poc -- _______________________________________________ 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