Bug#158753: dpkg-query [-l|-W] does not match the manpage
Package: dpkg
Version: 1.10.4
Severity: minor
Hi,
The dpkg-query manpage tells that:
-l | --list package-name-pattern ...
List packages matching given pattern. If no package-name-pattern
is given, list all packages in /var/lib/dpkg/available.
[...]
-W | --show package-name-pattern ...
Just like the --list option this will list all packages matching
the given pattern. However the output can be customized using
the --showformat option.
But, `dpkg-query -l' shows only packages which are installed
or removed, but not purged, so it DOES NOT list all packages from
/ver/lib/dpkg/available...
[135]/home/robert> dpkg-query -l | wc -l
2570
[136]/home/robert> dpkg-query -l '*' | wc -l
14738
For example it does not show packages selected for installation:
[139]/home/robert> dpkg-query -l '*' | grep '^in' | head -1
in abiword-gnome <none> (no description available)
[140]/home/robert> dpkg-query -l | grep '^in' | head -1
[141]/home/robert>
And `dpkg-query -W' displays only empty lines unless --showformat is given:
[141]/home/robert> dpkg-query -W dpkg
[142]/home/robert> dpkg-query -W --showformat '${Package}\n' dpkg
dpkg
It would be nice if it can use some default format.
Best Regards,
Robert
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux vox 2.4.19 #2 nie sie 18 16:42:28 CEST 2002 i586
Locale: LANG=pl_PL, LC_CTYPE=pl_PL
Versions of packages dpkg depends on:
ii dselect 1.10.4 a user tool to manage Debian packa
ii libc6 2.2.5-14 GNU C Library: Shared libraries an
-- no debconf information
Reply to: