Drakstats

From Mandriva Community Wiki

Jump to: navigation, search

Contents

Usage

drakstats retrieves statistics about installed rpm packages and allows you to send global package usage statistics to a remote server. It was introduced in Mandriva Linux 2005 LE.

drakstats shows a list of the installed rpm packages, together with their last usage time (based on file access time). It can be also used to remove old packages on a system.

Image:screenshot_drakstats.png

Implementation

Statistics retrieval

drakstats uses the rpmstats command, which outputs a sorted list of packages with their last usage time and their last accessed file.

Statistics upload

Statistics are uploaded on the qa.mandriva.com server by passing the rpmstats output to a SOAP method, using the MAC address of a network interface as identifier:

SOAP::Lite->uri('http://qa.mandriva.com/Putstats')->proxy('http://qa.mandriva.com/cgi-bin/putstats.cgi')->save_stat2file($id, $output);

On the server end, a small SOAP script saves files in the /home/rpmstats/ directory.

References

Personal tools
In other languages