LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Count yum downloads (https://www.linuxquestions.org/questions/linux-server-73/count-yum-downloads-601978/)

jakev383 11-23-2007 04:36 PM

Count yum downloads
 
I am setting up a yum repo for one of the projects that I've been working on for a while now. I've been using a PHP script to track the number of times my package (noarch.RPM) has been downloaded but this of course fails with my yum repo. Is there a way to track how many times someone installs/updates a package with yum?
Thanks.

harry edwards 11-23-2007 04:51 PM

As a repository is exposed to http clients can you not use the web server logs to count how many times a package has been accessed?

jakev383 11-23-2007 05:56 PM

Quote:

Originally Posted by harry edwards (Post 2968814)
As a repository is exposed to http clients can you not use the web server logs to count how many times a package has been accessed?

Looking at the logs, yes I can. Didn't think of that one.
Now, does anyone have a "canned" script to do this already? If not, I'll whack something out next weekend.


All times are GMT -5. The time now is 03:28 AM.