On Wed, Apr 07, 2010 at 10:11:14PM +0200, Carsten Hey wrote: > On Wed, Apr 07, 2010 at 09:58:26PM +0200, Carsten Hey wrote: > > The perl version could also serve as test by comparing its output to > > the output of the apt-cache command, at least after both have been > > postprocessed to remove differences in white spaces. > > Well, unless you choose to include the package version in the output, in > this case it would also have to be removed before comparing, of course. > I'm not sure if including the version is useful and don't have any > strong opinions about it, but if I would need to make a decision I would > choose not to include package versions.
On the other hand, there is no apt way to tell apt-cache to print all installed packages and their versions. What about an `list' command for apt-cache? Its output could be (some kind of combination of both existing apt-listrepository implementations): name1 version1 uri1 distribution1/component1 name2 version2 uri2 distribution2/component2 ... This would be a superset of apt-listrepository and also a substitute for dpkg -l in many cases. If someone requests this, an output modifier to additionally show pinning could be added to a later apt release. So, my wishlist currently is `apt-cache list' and `apt-cache unavail' :) The latter would be equivalent to: apt-cache list | grep /var/lib/dpkg/status Carsten -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org