On Thu, Jun 15, 2017 at 03:05:36PM +0100, Brian wrote:
> On Thu 15 Jun 2017 at 06:26:55 -0500, Richard Owlett wrote:
> > A mechanics question, "How to count the number of installed packages?"
> > I'd like to be able to reproducibly count installed packages.
> 
> dpkg -l | grep ^ii | wc -l

That will miss packages that are held ("hi").

dpkg -l | grep -c ^.i

would be better.

Reply via email to