On Wed, 4 Jun 2025 at 15:13, Patrick O'Callaghan <pocallag...@gmail.com>
wrote:

> The man page for dnf5 says:
>
>        list
>               List installed or available packages.
>
> However it doesn't appear to give any more detail, and if I try it:
>
> $ dnf list --available fedora.repo
> Updating and loading repositories:
> Repositories loaded.
> No matching packages to list
>
> which is clearly nonsense. I'm mainly interested in listing packages in
> a COPR repo, but I seem to be missing something.
>
> Any hints would be appreciated.
>

I think 'fedora.repo' is throwing it. If I:

$ dnf list
$ dnf list --available

I get the expected output. I think if you want just a specific repo, use
--repo as well.

$ dnf list --available | wc -l
Updating and loading repositories:
Repositories loaded.
77772
$ dnf list --available --repo fedora | wc -l
Updating and loading repositories:
Repositories loaded.
76877
$ dnf list --available --repo updates | wc -l
Updating and loading repositories:
Repositories loaded.
14287

The global options section under

$ dnf --help

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

Reply via email to