On Thu, Nov 28, 2019 at 08:55:00PM +0000, Niels Thykier wrote: > While it would take a bit of restructuring / refactoring, I think it > would be possible to use a single dpkg-query for everything and still be > able to process the data in a "streaming" fashion.
Yes this could work, however this is assuming that dpkg-query is not allocating everything in memory at once. Cheers, Bill