There was a pretty good discusion of this question on debian-user this past week.
I prefer dpkg -l |grep ii
jakemsr
On Wed, Nov 22, 2000 at 02:12:03PM -0800, Michael Smith wrote:
> dpkg -l
>
> "Patrick R. Wade" wrote:
>
> > Is anyone familiar with a command-line method for listing currently
> > installed packages on a Debian system? I couldn't find anything in
> > the documentation, and i wound up doing:
> >
> > bash$ for i in `dpkg -l * | awk '{print $2}'` ; do dpkg -s $i |
> > > grep -B 1 "ok installed" | grep "Package" | awk '{print $2}' ; done
> >
> > Which is, you will note, just a little bit longer and more complex than
> > BSD's
> >
> > bash$ pkg_info
> >
> > --
> > It's a hard work, being a network pusher. Your customers beep you in
> > the middle of the night, hungry for another fix. But, what can you do?
> > Customer satisfaction and all that crap...
> > Pays good, though. --Ingvar the Grey, in the Monastery
>
> --
> "I was on a Boston to New York shuttle flight that gets stuck on the runway for 3
>hours
> with no explanation. Worse, I'm sitting in front of three idiot consultants from
>Razorfish
> who spend the whole time talking loudly and incessantly. Remarkably, not one word of
>it
> resembled any productive activity in the slightest. 'So, I conducted a series of
>group
> discussion sessions to quantify how they establish their procedures.' 'But, Bianca,
>how
> did you formulate the framework for evaluating their paradigms?'
> My favorite line - Bianca is irate because a client asked her for some
>concrete
> bit of information: 'Can you believe that? Hello? I'm an Information Architect, not a
> Knowledge Engineer!'" --dump() on slashdot
>