Drakstats

From Mandriva Community Wiki

(Redirected from DrakStats)
Jump to: navigation, search

Contents

[edit] Usage

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

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

Image:screenshot_drakstats.png

[edit] Implementation

[edit] Statistics retrieval

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

[edit] 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.

[edit] References

Personal tools