Difference between revisions of "Pkgstats"

From ArchWiki
Jump to: navigation, search
(Created page with " == pkgstats == pkgstats sends a list of all installed packages, the architecture and the mirror you are using to the Arch Linux project. '''Installation:'''")
 
(Add section about automatic running of pkgstats via time-based jobs (cron/systemd).)
(11 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 +
[[Category:Package management]]{{DISPLAYTITLE:pkgstats}}
 +
[[de:Pkgstats]]
 +
pkgstats sends a list of all installed packages, [https://www.archlinux.org/news/pkgstats-now-collects-modules-usage/ kernel modules], the architecture and the mirror you are using to the Arch Linux project.
 +
This information is anonymous and cannot be used to identify the user, but it will help Arch developers prioritize their efforts.
  
== pkgstats ==
+
== Installation ==
 +
You can install {{Pkg|pkgstats}} from the [[Official Repositories]].
  
pkgstats sends a list of all installed packages, the architecture and the mirror you are using to the Arch Linux project.
+
== Usage ==
  
'''Installation:'''
+
$ pkgstats -h
 +
usage: /usr/bin/pkgstats [option]
 +
options:
 +
        -v      show the version of pkgstats
 +
        -d      enable debug mode
 +
        -h      show this help
 +
        -s      show what information would be sent
 +
                (but do not send anything)
 +
        -q      be quiet except on errors
 +
 
 +
== Tip: set it once and forget about it ==
 +
In order to keep statistics up-to-date while not forcing users to remember to run {{ic|pkgstats}} periodically, a time-based job may be set so as to execute {{ic|pkgstats}} in the background once in a while.
 +
 
 +
=== Using cron ===
 +
{{ic|/etc/cron.weekly/pkgstats}} file is installed by default by {{Pkg|pkgstats}}. However, if not done before {{ic|cron}} systemd service should be enabled. See [[Cron#Activation_an_autostart]].
 +
 
 +
=== Using systemd cron functionality ===
 +
[[Systemd]] is capable of taking on a significant subset of the functionality of {{ic|cron}} through built-in support for calendar time events (from systemd version 197) as well as monotonic time events.
 +
 
 +
A custom example for {{ic|pkgstats}} can be found at [[systemd/cron_functionality#pkgstats ]]. The rest of that article should be followed in order to activate systemd cron functionality.
 +
 
 +
== Results and reference ==
 +
 
 +
Statistics are available at https://www.archlinux.de/?page=Statistics.
 +
 
 +
You can read the official [https://bbs.archlinux.org/viewtopic.php?id=105431 forum thread] for more info.

Revision as of 17:35, 12 January 2014

pkgstats sends a list of all installed packages, kernel modules, the architecture and the mirror you are using to the Arch Linux project. This information is anonymous and cannot be used to identify the user, but it will help Arch developers prioritize their efforts.

Installation

You can install pkgstats from the Official Repositories.

Usage

$ pkgstats -h
usage: /usr/bin/pkgstats [option]
options:
       -v      show the version of pkgstats
       -d      enable debug mode
       -h      show this help
       -s      show what information would be sent
               (but do not send anything)
       -q      be quiet except on errors

Tip: set it once and forget about it

In order to keep statistics up-to-date while not forcing users to remember to run pkgstats periodically, a time-based job may be set so as to execute pkgstats in the background once in a while.

Using cron

/etc/cron.weekly/pkgstats file is installed by default by pkgstats. However, if not done before cron systemd service should be enabled. See Cron#Activation_an_autostart.

Using systemd cron functionality

Systemd is capable of taking on a significant subset of the functionality of cron through built-in support for calendar time events (from systemd version 197) as well as monotonic time events.

A custom example for pkgstats can be found at systemd/cron_functionality#pkgstats . The rest of that article should be followed in order to activate systemd cron functionality.

Results and reference

Statistics are available at https://www.archlinux.de/?page=Statistics.

You can read the official forum thread for more info.