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
_______________________________________________
Rpm-maint mailing list
[email protected]
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to