[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Obtaining a list of installed files using libapt-pkg



Hi,

On Wed, Nov 18, 2015 at 05:57:14PM +1000, Troy Heron wrote:
> Is it possible to obtain a list of installed files using the libapt-pkg API?

No, you can't as apt doesn't concern itself with such lowlevel details,
we have dpkg to worry about such stuff. ;)

See "dpkg-query --listfiles" and "dpkg-query --search" for a commandline
API. dpkg maintainers are also working on a libdpkg (currently a static
library only) which might expose this info. There is also libdpkg-perl
(from the same team) which likely has an API for this.


Best regards

David Kalnischkies

Attachment: signature.asc
Description: PGP signature


Reply to: