Skip to content

Commit 417598d

Browse files
committed
man: Document dpkg-query --search and --listfiles output formats
Document or clarify the output formats, so that users can rely on it instead of having to guess, and to make it explicit this can be relied on.
1 parent 915fc5d commit 417598d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

man/dpkg-query.pod

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,9 @@ on the argument list.
142142
List files installed to your system from I<package-name>. When multiple
143143
I<package-name>s are listed, the requested lists of files are separated
144144
by an empty line, with the same order as specified on the argument list.
145-
However, note that files created by package-specific installation-scripts
146-
are not listed.
145+
146+
This command will not list extra files created by maintainer scripts,
147+
nor will it list alternatives.
147148

148149
=item B<--control-list> I<package-name>
149150

@@ -189,6 +190,14 @@ handled like a glob pattern, otherwise any trailing ‘B</>’ or
189190
This command will not list extra files created by maintainer scripts,
190191
nor will it list alternatives.
191192

193+
The output format consists of one line per matching pattern, with a list
194+
of packages owning the pathname separated by a comma (U+002C ‘B<,>’) and
195+
a space (U+0020 ‘B< >’), followed by a colon (U+003A ‘B<:>’) and a space,
196+
followed by the pathname. As in:
197+
198+
pkgname1, pkgname2: pathname1
199+
pkgname3: pathname2
200+
192201
=item B<-p>, B<--print-avail> [I<package-name>...]
193202

194203
Display details about packages, as found in I<%ADMINDIR%/available>.

0 commit comments

Comments
 (0)