List all packages present in a particular repository

$ dnf repo list --all
repo id                                             repo name                                                               status
code                                                Visual Studio Code                                                     enabled
copr:copr.fedorainfracloud.org:aerfanr:birdtray     Copr repo for birdtray owned by aerfanr                               disabled

In above I want to find all packages provided by copr:copr.fedorainfracloud.org:aerfanr:birdtr

In dnf4 we had a command dnf repository-packages, which does it, what is the equivalent in dnf5?

1 Like
dnf list --available --repo=copr\*
4 Likes

To list the last 20 updated packages:

$ dnf repoquery --repoid=copr:copr.fedorainfracloud.org:ycollet:audinux --queryformat "%45{name} %{evr} %{buildtime}" | sort -r -k3 | head --lines=20

1 Like