Package: dpkg
Version: 1.13.13
Severity: normal
Tags: patch
Hi,
In the manpage dpkg-query.1, the option --showformat cannot be called with -f:
"-f | --showformat=format" should be "--showformat=format".
Also I think it would be useful to show how to use this option.
The patch I join contains an exemple and the description of commands
in the synopsis section (cf my mail on dpkg list)
Regards,
--
Philippe Batailler
--- dpkg-query.1 2006-02-08 20:35:40.000000000 +0100
+++ dpkg-query.1.new 2006-02-09 18:37:21.000000000 +0100
@@ -4,7 +4,35 @@
.SH SYNOPSIS
.B dpkg\-query
-
+.BR \-l | \-\-list
+.IR package\-name\-pattern
+.br
+.B dpkg\-query
+.BR \-W | \-\-show
+.IR package\-name\-pattern
+.br
+.B dpkg\-query
+.BR \-s | \-\-status
+.IR package\-name
+.br
+.B dpkg\-query
+.BR \-L | \-\-listfiles
+.IR package
+.br
+.B dpkg\-query
+.BR \-S | \-\-search
+.IR filename\-search\-pattern
+.br
+.B dpkg\-query
+.BR \-p | \-\-print\-avail
+.IR package
+.br
+.B dpkg\-query
+.BR \-\-licence | \-\-license
+.br
+.B dpkg\-query
+.BR \-\-version
+.br
.SH DESCRIPTION
\fBdpkg\-query\fP is a tool to show information about packages listed in
the \fBdpkg\fP database.
@@ -68,7 +96,7 @@
Change the location of the \fBdpkg\fR database. The default location is
\fI/var/lib/dpkg\fP.
.TP
-\fB-f\fP | \fB\-\-showformat=\fP\fIformat\fR
+\fB\-\-showformat=\fP\fIformat\fR
This option is used to specify the format of the output \fB\-\-show\fP
will produce. The format is a string that will be output for each package
listed.
@@ -125,6 +153,12 @@
.fi
The default format string is \(lq\fB${Package}\et${Version}\en\fP\(rq.
+To get the name of the dpkg maintainer and the installed version, you could
run:
+
+.T
+.nf
+ \fBdpkg\-query \-W \-\-showformat='${Package}: version
${Version}\\t${Maintainer}\\n' dpkg\fP
+.fi
.SH ENVIRONMENT
.TP