On Thu, 2025-06-05 at 12:03 +0100, Patrick O'Callaghan wrote: > On Wed, 2025-06-04 at 18:29 -0400, Todd Zullinger wrote: > > I think that's because you need to add --available to the > > list subcommand to not include all the installed packages. > > Per dnf5-list(8): > > > > --installed > > List only installed packages. > > > > --available > > List only available packages. > > Yes, adding '--available' works: > > $ dnf list --available --repo=copr:copr.fedorainfracloud.org:lizardbyte:beta > Updating and loading repositories: > Repositories loaded. > Available packages > Sunshine.src 2025.531.135549-1.fc42 > copr:copr.fedorainfracloud.org:lizardbyte:beta > Sunshine.x86_64 2025.531.135549-1.fc42 > copr:copr.fedorainfracloud.org:lizardbyte:beta > copr-ci.src 2025.526.2856-1.fc42 > copr:copr.fedorainfracloud.org:lizardbyte:beta > copr-ci.x86_64 2025.526.2856-1.fc42 > copr:copr.fedorainfracloud.org:lizardbyte:beta > > 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. 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