Best way to list package versions and what provides?

I merged the two topics you created together since they are pretty similar.

You can search what bundle contains a file, similar to dnf provides with a swupd search. In particular these options are useful:

Options:
   -l, --library           Search paths where libraries are located for a match
   -b, --binary            Search paths where binaries are located for a match
   -s, --scope=[query type] 'b' or 'o' for first hit per (b)undle, or one hit total across the (o)s

For determining specific package versions, you can download and parse this file, replacing 29620 with the desired version: https://download.clearlinux.org/releases/29620/clear/source/package-sources

You can also add a local repo for querying using dnf, repllacing 29620 with the desired version like this:

dnf config-manager --add-repo https://download.clearlinux.org/releases/29620/clear/x86_64/os/
dnf repoquery

You can then of course just use dnf repoquery --whatprovides directly.

1 Like