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

Re: Number of Debian packages available.



On Tue, 16 Oct 2012 13:59:21 +0100
Brian <ad44@cityscape.co.uk> wrote:

> 
> 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.
> 
> 
The first one gives me 926 on an amd64 X-less squeeze server, which is
around the number of installed packages.

sources.list:
deb http://ftp.uk.debian.org/debian/ squeeze main non-free contrib
deb-src http://ftp.uk.debian.org/debian/ squeeze main non-free contrib

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib
non-free

# squeeze-updates, previously known as 'volatile'
deb http://ftp.uk.debian.org/debian/ squeeze-updates main contrib
non-free
deb-src http://ftp.uk.debian.org/debian/ squeeze-updates main contrib
non-free



'apt-cache stats' from the same machine gives:

Total package names: 37481 (750 k)
Total package structures: 37481 (2,099 k)
  Normal packages: 28432
  Pure virtual packages: 390
  Single virtual packages: 3261
  Mixed virtual packages: 258
  Missing: 5140
Total distinct versions: 28904 (2,081 k)
Total distinct descriptions: 28904 (694 k)
Total dependencies: 177309 (4,965 k)
Total ver/file relations: 30947 (743 k)
Total Desc/File relations: 28904 (694 k)
Total Provides mappings: 5838 (117 k)
Total globbed strings: 133 (1,465 )
Total dependency version space: 734 k
Total slack space: 49.2 k
Total space accounted for: 10.1 M

Being X-less, there's no Synaptic, however on my sid workstation,
Synaptic reports '39614 packages listed' as being the sum of stats'
'Normal packages' and 'Mixed virtual packages', which would be 28,690
here.

-- 
Joe


Reply to: