On Thu, Nov 28, 2019 at 08:55:00PM +0000, Niels Thykier wrote: > On Tue, 19 Nov 2019 11:27:56 +0100 Bill Allombert <ballo...@debian.org> > > 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. > > As an example, using the following: > > dpkg-query --show \ > --showformat='${status} ${package}\n${db-fsys:Files}\n\n'
Hello Guillem, I am trying to implement this to see how well this perform. Unfortunately it seems it does not provide a stable interface across release, but maybe I am doing something wrong. dpkg-query --show --showformat='${status} ${package}\n${db-fsys:Files}\n\n'|head -n1 On buster: deinstall ok config-files 0ad On sid: (Lecture de la base de données... 134812 fichiers et répertoires déjà installés.) Cheers, Bill.