Description of problem: repoquery from yum-utils has base_package_name querytag, which can be used to get the source package name. dnf repoquery doesn't have any equivalent. The closes querytag is sourcerpm, but that spits out whole filename, requiring me to parse the name from it. It would be great if dnf also had it - for convenience and for backwards compatibility with yum.
Isn't `dnf repoquery -C sqlite --srpm --qf "%{name}"` what you want?
It is, I didn't know about that one. Thank you!
--srpm works with source rpms, while --source works with binary rpms and point is to query binary rpms, but get name of srpm used.
You can use querytag source_name. DNF has querytag "source_name" with the same meaning as "base_package_name" in yum. This PR adds this tag to the help message: https://github.com/rpm-software-management/dnf/pull/823
The patch was released in dnf-2.5.1-1 into rawhide and Fc26.