[Rpm-maint] [rpm-software-management/rpm] `rpm -qa` output in json (Discussion #2547)
Michal Domonkos
notifications at github.com
Thu Jan 15 12:39:20 UTC 2026
@RokeJulianLockhart not directly, but you could construct it yourself by using [rpm-queryformat(7)](https://rpm.org/docs/latest/man/rpm-queryformat.7). In fact, both [`--info`](https://github.com/rpm-software-management/rpm/blob/294b68b872de851153fc882eee9d2970093dff4e/rpmpopt.in#L88) and [`--json`](https://github.com/rpm-software-management/rpm/blob/294b68b872de851153fc882eee9d2970093dff4e/rpmpopt.in#L122C13-L122C17) are implemented that way, too, as popt aliases. The latter basically just dumps all the available tags and wraps them in JSON so you could do something similar by copying and adjusting the `--info` alias.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/2547#discussioncomment-15506409
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/2547/comments/15506409 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260115/6c3b4f65/attachment.htm>
More information about the Rpm-maint
mailing list