On Mon, Jan 11, 2016 at 03:46:27PM +0100, Jan Kurik wrote:
> = Proposed System Wide Change: Change Proposal Name NewRpmDBFormat =
> https://fedoraproject.org/wiki/Changes/NewRpmDBFormat

Details of the format?

What forward and backward compatibility guarantees are there?

libguestfs reads the rpmdb of guests (of any version, new or old) in
order to get the list of packages installed in a guest.  Remember that
the host and guest may be very different versions, eg. a RHEL 9 host
accessing a Fedora 24 guest.  Or vice versa.

Currently we use the (BDB-specific obviously) db_dump tool for this
purpose.  Other distros such as Debian as much simpler in this regard
since they expose the package data as plain text files.

https://github.com/libguestfs/libguestfs/blob/master/src/inspect-apps.c

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
--
devel mailing list
devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org

Reply via email to