Difference between revisions of "Pkgstats"
(Add section about automatic running of pkgstats via time-based jobs (cron/systemd).) |
m (→Using cron: Fixed link to activation/autostart after fixing a typo in said section) |
||
Line 23: | Line 23: | ||
=== Using cron === | === 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# | + | {{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_and_autostart]]. |
=== Using systemd cron functionality === | === Using systemd cron functionality === |
Revision as of 11:43, 4 February 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.
Contents
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_and_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.