Patrick O'Callaghan wrote:
> On Wed, 2025-06-04 at 13:18 -0400, Todd Zullinger wrote:
>> Leaving it off makes more sense, IMO.
> 
> Of course. I did know that in fact.

:)

> Nonetheless when I wanted to list the packages from a specific repo
> (rather than everything) I tried:
> 
> $ dnf list --repo=copr:copr.fedorainfracloud.org:lizardbyte:beta|wc -l
> Updating and loading repositories:
> Repositories loaded.
> 3522
> 
> However that's a small repo with only a couple of packages, not over
> 3500:
> 
> $ dnf list|grep copr:copr.fedorainfracloud.org:lizardbyte:beta
> Updating and loading repositories:
> Repositories loaded.
> Sunshine.x86_64                                                               
>            2025.531.135549-1.fc42                                             
>              copr:copr.fedorainfracloud.org:lizardbyte:beta
> Sunshine.src                                                                  
>            2025.531.135549-1.fc42                                             
>              copr:copr.fedorainfracloud.org:lizardbyte:beta
> 
> I would have expected those two commands to have listed essentially the same 
> set of packages.

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.

In a Fedora 42 container:

    # check the package count from rpm, for comparison with
    # dnf list --installed
    $ rpm -qa | grep -v ^gpg-pubkey | wc -l
    123

    $ dnf -qq list --installed | tail -n+2 | wc -l
    123

    $ dnf -qq --repo=fedora-cisco-openh264 list --installed | tail -n+2 | wc -l
    123

    $ dnf -qq --repo=fedora-cisco-openh264 list --available | tail -n+2 | wc -l
    3

    $ dnf -qq --repo=fedora-cisco-openh264 list --available 
    Available packages
    mozilla-openh264.x86_64 2.4.1-2.fc42 fedora-cisco-openh264
    openh264.x86_64         2.4.1-2.fc42 fedora-cisco-openh264
    openh264-devel.x86_64   2.4.1-2.fc42 fedora-cisco-openh264

I think it's a buglet that even with -qq the 'Installed
packages' and 'Available packages' headers are printed.  But
that's just another tangent.

-- 
Todd

Attachment: 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

Reply via email to