Kenneth Bernholm wrote:
>
> Her er en lille kodestump til dem, der interesserer sig for licenser ...
>
> #!/usr/bin/perl -w
> # How free is your RPM-based GNU/Linux distribution?
> # by Kenneth Bernholm (kebe@get2net.dk), may 2001
> @rpmdump=`rpm -qa --queryformat '%{LICENSE}\n'`;
> foreach(@rpmdump) {chomp; if($_) {$lc{$_}++} else {$lc{$_}=1}}
> @keys=sort{$lc{$b}<=>$lc{$a}} keys %lc;
> foreach(@keys) {print "$lc{$_}\t$_\n"}
> exit(0);
Findes rpm på andet end Red Hat og SuSE?
--
Thorbjørn Ravn Andersen "...plus...Tubular Bells!"
http://bigfoot.com/~thunderbear