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

Re: [PATCH] dpkg-query: --listfiles without package lists all files



Hi Guillem,

* Guillem Jover <guillem@debian.org> [2022-08-22 00:55]:
On Sun, 2022-08-21 at 20:44:32 +0200, Jochen Sprickerhof wrote:
diff --git a/man/dpkg-query.pod b/man/dpkg-query.pod
index ade71db25..53ab4e3b7 100644
--- a/man/dpkg-query.pod
+++ b/man/dpkg-query.pod
@@ -137,7 +137,7 @@ When multiple I<package-name> entries are listed, the requested status
 entries are separated by an empty line, with the same order as specified
 on the argument list.

-=item B<-L>, B<--listfiles> I<package-name>...
+=item B<-L>, B<--listfiles> [I<package-name>...]

 List files installed to your system from I<package-name>. When multiple
 I<package-name>s are listed, the requested lists of files are separated

Hmm, this does not seem to fit entirely the --listfiles action, and
diverges from its interface, but in any case I think the following
would be an existing and equivalent replacement:

 $ dpkg-query -f '${db-fsys:Files}\n' -W

That's perfect, thanks!

Btw. is there a similar feature to list all control files of all packages, like dpkg-query -c dpkg?
Otherwise, would something like db-fsys:Control-Files be acceptable?

I'm trying to build something similar to the cruft(-ng) package to find non package files. Would that be a feature for dpkg?

Cheers Jochen

Attachment: signature.asc
Description: PGP signature


Reply to: