Pages

Saturday, 27 October 2012

几个linux os的软件仓库的粗略统计

粗略统计,只在数量级上有可参考性
按仓库中包含的“包”的数量列表如下:
1. Ubuntu (33468 )
2. Debian ( 29272 )
3. Fedora release 13 (Goddard) ( 18217 )
4. openSUSE 11.3 ( 9453 )
5. ArchLinux ( 4855 )
6. CentOS 5.5 ( 3756 )
7. Mandriva 2010 ( 3421 )
8. Slackware 13.1.0 ( 1011 )

详情和统计方法如下(不完全统计):
Debian: 2.9 万
#apt-cache stats
Total package names: 29272 (1171k)
Normal packages: 22114
Pure virtual packages: 369
Single virtual packages: 2072
Mixed virtual packages: 206
Missing: 4511
Total distinct versions: 22621 (1176k)
Total distinct descriptions: 22621 (543k)
Total dependencies: 138199 (3870k)
Total ver/file relations: 47172 (755k)
Total Desc/File relations: 22621 (362k)
Total Provides mappings: 4533 (90.7k)
Total globbed strings: 50 (411)
Total dependency version space: 571k
Total slack space: 96.7k
Total space accounted for: 7159k

Ubuntu: 3.3 万
#apt-cache stats
Total package names: 33468 (1,339k)
Normal packages: 25433
Pure virtual packages: 779
Single virtual packages: 1696
Mixed virtual packages: 294
Missing: 5266
Total distinct versions: 30432 (1,704k)
Total distinct descriptions: 30432 (730k)
Total dependencies: 214553 (6,007k)
Total ver/file relations: 31133 (498k)
Total Desc/File relations: 30432 (487k)
Total Provides mappings: 6700 (134k)
Total globbed strings: 129 (1,650)
Total dependency version space: 1,103k
Total slack space: 89.7k
Total space accounted for: 9,774k

CentOS 5.5 (x86_64):3.4K
#yum list | wc -l
3756

http://mirrors.sohu.com/centos/5.5/os/x86_64/CentOS/ 中包含: 3455 个软件包。

openSUSE 11.3 :  9453 个包
#zypper pa | wc -l
9453

Fedora release 13 (Goddard):18217
#yum list | wc -l
18217

ArchLinux : 4855
pacman -Sl | wc -l
4855

Slackware 13.1.0 : 1011
curl -s http://mirrors.sohu.com/slackware/slackware/slackware/PACKAGES.TXT | grep -c ‘PACKAGE NAME’
Slackware 的包管理 slackpkg 没有提供统计功能……
这个数量跟CentOS一样,应该是发行版光盘上包含的包的数量。

Mandriva 2010 : 3421
#urpmq –list | wc -l
Mandriva 2010 桌面免费版的DVD中,包含了 4584个包,外加 1196 个额外的包。