I would like to be able to list all the NEWS from packages that have been upgraded since I last ran the script/command. This would then likely be run in a cron job once per week in order to provide a summary of any upgrade information.
apt-listchanges command looks like what I want, but I can't seem to get it to behave exactly as I described. The command I've tried running is:
apt-listchanges -f text -a --which=news --save_seen=/var/lib/apt/listchanges.db /var/cache/apt/archives/*.deb
It seems to want the actual packages to be listed, rather than just checking all of them by default, so I gave it everything in the cache, I'm not sure if that is the best way to do that.
But, the bigger problem, is that by default it only shows changes between the currently installed versions, therefore shows no changes. Therefore I added the -a option to display all changes, and then added the save_seen option which claims that it will stop it displaying changes that have been previously shown. But, each time I run the command it displays all the changes every time.
Is there a way to tweak the command to work as expected? Or, maybe some other solution, such as using an apt hook to append the NEWS for each upgraded package to a file, then my script can simply read the file and delete the contents each time it runs.