[Rpm-maint] [rpm-software-management/rpm] Get installed packages from RPM DB (#578)

Florian Festi notifications at github.com
Wed Oct 24 15:04:12 UTC 2018


First: This is the issue tracker for RPM. Your problem does not qualify as a ticket here. Questions like this should go to the rpm-list mailing list or the #rpm.org IRC channel (http://rpm.org/community.html)

To your actual question: That depends a lot on what you actually mean. Many things are possible but may be not for you. The rpmdb is not meant to be read without rpm. It contains RPM headers which are binary in nature and while you could read them with other code than rpm itself - and people have done that - this is not encouraged.

You can get the names of the packages - and the names only - from the keys of /var/lib/rpm/Name.

You may want to consider to create the list of package during build time of the container as rpm should be available then - assuming you are building them yourself.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/578#issuecomment-432695894
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20181024/0ab71da1/attachment.html>


More information about the Rpm-maint mailing list