To get the list of installed RPMs: rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}\n' For matching SRPMs? rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}\n' | LANG=C sort | while read name; do echo "$name.rpm: `rpm -qi $name | grep '^Source RPM'`"; done Do not bother with yum or dnf, they pull information from the rpm database and burn cycles on unnecessary metadata updates from updstreams. On Mon, Nov 22, 2021 at 3:55 PM Matthew Miller <mattdm@xxxxxxxxxxxxxxxxx> wrote: > > rpm -qa --qf '%{sourcerpm}\n' > > gives me a list of source RPM names, but it's in filename format. I don't > want to have to try to parse that to figure out the actual source package > base name (i.e. the dist-git name). Is there something I'm missing? Probably > there is. :) > > -- > Matthew Miller > <mattdm@xxxxxxxxxxxxxxxxx> > Fedora Project Leader > _______________________________________________ > packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx > 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/packaging@xxxxxxxxxxxxxxxxxxxxxxx > Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure _______________________________________________ packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx 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/packaging@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure