User:Fab/Stats: Difference between revisions

From Alpine Linux
(Created page with "Some ideas to gether data for statistics about Alpine Linux. The data are presented at the Trivia page. = Packages = == Ancient releases == See: http...")
 
m (nowiki'd dead links.)
 
(9 intermediate revisions by one other user not shown)
Line 1: Line 1:
Some ideas to gether data for statistics about Alpine Linux.  
Some ideas to gether data for statistics about Alpine Linux.  


The data are presented at the [[Alpine_Linux:Trivia|Trivia]] page.
The data are presented at the [[Alpine_Linux:Trivia|Trivia]] page. A git repository was available at <nowiki>http://git.alpinelinux.org/cgit/fab/alpine-stats/</nowiki>.


= Packages =
= Packages =
Line 7: Line 7:
== Ancient releases ==
== Ancient releases ==


See: http://ancient.alpinelinux.org/alpine/
See: <nowiki>http://ancient.alpinelinux.org/alpine/</nowiki>


* Grab INDEX.md5.gz (e.g. http://ancient.alpinelinux.org/alpine/v1.1/apks/INDEX.md5.gz)
* Grab INDEX.md5.gz (e.g. <nowiki>http://ancient.alpinelinux.org/alpine/v1.1/apks/INDEX.md5.gz</nowiki>)
* Count the entries
* Count the entries
* Print the number of packages
* Print the number of packages
Line 15: Line 15:
== Newer releases ==
== Newer releases ==


* Grab APKINDEX.tar.gz (e.g. http://nl.alpinelinux.org/alpine/v2.4/main/x86/APKINDEX.tar.gz)
* Grab APKINDEX.tar.gz (e.g. <nowiki>http://nl.alpinelinux.org/alpine/v2.4/main/x86/APKINDEX.tar.gz</nowiki>)
* Count the lines which starts with P: (e.g. P:libxinerama-dev, P:postfix) in APKINDEX
* Count the lines which starts with P: (e.g. P:libxinerama-dev, P:postfix) in APKINDEX
* Perhaps separate packages (-dev, -doc, -lang)
* Perhaps separate packages (-dev, -doc, -lang)
Line 22: Line 22:
== "High score list" of committer ==
== "High score list" of committer ==


{{Cmd|git shortlog -s -n}}
{{Cmd|git shortlog -s -n | head}}


== Commit per year ==
== Commit per year ==
To grab the data use the command below:
To grab the data use the command below:


{{Cmd|git log --after="2011/1/1" --until="2011/12/31" --pretty=format:'' | wc -l}}
{{Cmd|<nowiki>git log --after="2016/1/1" --until="2016/12/31" --pretty=format:'' | wc -l</nowiki>}}


= Tools =
= Tools =
Line 33: Line 33:


* [http://gitstats.sourceforge.net/ GitStats] - git history statistics generator
* [http://gitstats.sourceforge.net/ GitStats] - git history statistics generator
  {{Cmd|apk add gitstats -U -X http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted}}

Latest revision as of 02:23, 28 August 2023

Some ideas to gether data for statistics about Alpine Linux.

The data are presented at the Trivia page. A git repository was available at http://git.alpinelinux.org/cgit/fab/alpine-stats/.

Packages

Ancient releases

See: http://ancient.alpinelinux.org/alpine/

  • Grab INDEX.md5.gz (e.g. http://ancient.alpinelinux.org/alpine/v1.1/apks/INDEX.md5.gz)
  • Count the entries
  • Print the number of packages

Newer releases

  • Grab APKINDEX.tar.gz (e.g. http://nl.alpinelinux.org/alpine/v2.4/main/x86/APKINDEX.tar.gz)
  • Count the lines which starts with P: (e.g. P:libxinerama-dev, P:postfix) in APKINDEX
  • Perhaps separate packages (-dev, -doc, -lang)
  • Print the data

"High score list" of committer

git shortlog -s -n

Commit per year

To grab the data use the command below:

git log --after="2016/1/1" --until="2016/12/31" --pretty=format:'' | wc -l

Tools

Some tools which could help to generate statistics.

  • GitStats - git history statistics generator

apk add gitstats -U -X http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted