Repository Server - apt-mirror - How to report the list of downloaded packages on every run?
apt-mirror outputs the size of downloaded packages...
167.3 MiB will be downloaded into archive.
But how to report the list of downloaded packages on every run?
Example: Following packages were downloaded: apache, chrome, ...
Solution 1:
There's nothing built-in, but apt-mirror
is a fairly basic perl script. If you are comfortable doing it then you could probably add a patch at https://github.com/apt-mirror/apt-mirror/blob/7d521b168ab34fd38fd38bbb26acad1f43e262a7/apt-mirror#L910 .
You could certainly use a Bash solution as a comment suggests if it suits your needs. The postmirror.sh
script would be a very handy location to run it. A line like this will print packages updated in the past hour
find . -type f -path '*pool*' -mmin -60 -print
Unfortunately, apt-mirror
is not actively developed. There are several bugs that will prevent it from properly mirroring apt repositories for recent releases. You could consider using a fork where these bugs have been patched. If you do, then you could potentially request this feature from the fork maintainers.