[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Number of Debian packages available.



On Tue 16 Oct 2012 at 12:06:17 +0100, Lisi wrote:

> On Tuesday 16 October 2012 11:55:55 Brian wrote:
> >
> > Edit your /etc/apt/sources.list to have only the line
> >
> >    deb <your_mirror> squeeze non-free
> >
> > Then
> >
> >    apt-get update
> >
> > and look at the output.
> >
> > Add "contrib" to the line above and repeat, Do the same with "main" added.
> > Do sums.
> 
> Thanks!

Without the faffing about with getting a root prompt and using an
editor:

cat /var/lib/dpkg/available | grep '^Section:' | wc -l
cat /var/lib/dpkg/available | grep '^Section: non-free' | wc -l
cat /var/lib/dpkg/available | grep '^Section: contrib' | wc -l

28,795, 403 and 187 respectively for me.


Reply to: