[Rpm-maint] [rpm-software-management/rpm] RFE: add a way to access the installed NVRA and install time without accessing an rpmdb (#459)
Jeff Johnson
notifications at github.com
Wed Jun 27 11:17:19 UTC 2018
There are many programs/applications that wish simple information about installed software, e.g. the HOST-MIB in net-snmp, or security checkers cross referencing to CVEs, where linking to rpm libraries and Berkeley DB are mind-numbing overkill.
One simple solution to supplying essentially "rpm -qa" in a dumbed down KISS fashion is to map NVRA onto the file system with an install time stamp.
A zero length file is sufficient for net-snmp. Other applications which might need more complex information can populate the contents with a --queryformat output.
The file can be maintained in sync with an rpmdb by creating/unlinking the file on the same code path as adding/erasing rpmdb headers.
I can supply pointers to code, and can do an implementation, if interested.
--
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/459
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180627/0e65c0a8/attachment.html>
More information about the Rpm-maint
mailing list