Re: How do I get the source package _name_ from an RPM?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 22, 2021 at 9: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. :)

When in doubt, dnf's repoquery is usually more powerful than rpmquery
(even if its arguments are somewhat opaque at times):
$ dnf repoquery --installed --qf "%{source_name}"
Gives you the list of source package names for all installed packages.

Fabio
_______________________________________________
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




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux