[ Cc-ing the bug log ] On Thu, Mar 03, 2011 at 07:05:14PM +0100, Guillem Jover wrote: > > For each package --status will do the trick, for all packages, yeah > > it does not support patterns. I guess adding that would be fine. So > > one could do something like: «dpkg-query -s '*'». > > Or on a second though, just supporting «dpkg-query -s» would solve > your problem too, as you don't seem to actually need pattern support, > if there's a need for that we can always add them, obviously.
Yes, absolutely: for my "dump" needs, that would be enough. I'm not sure there are other use cases who might benefit by globbing there though. > > Currently something like «dpkg-query -l|tr -s ' ' '\t'|cut -f2» could > > do the trick, altough I could agree it sucks a bit. If --status would > > accept patterns that would be nicer. > > Huh, disregard this, as pointed out by Raphaël, which I had forgotten > somehow, just doing «dpkg-query -f '${Package}\n' -W» would work. In > my defense (if that's possible :), I've now fixed the documentation: > > <http://git.debian.org/?p=dpkg/dpkg.git;a=commitdiff;h=7a86e423> Cheers. -- Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7 zack@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/ Quando anche i santi ti voltano le spalle, | . |. I've fans everywhere ti resta John Fante -- V. Capossela .......| ..: |.......... -- C. Adams
signature.asc
Description: Digital signature