I am wondering where I can find update (refresh) logs for snap packages. Normally, apt updates can be found in /var/log/apt/ but where does snapd write its logfiles?
Thanks for your answer
I am wondering where I can find update (refresh) logs for snap packages. Normally, apt updates can be found in /var/log/apt/ but where does snapd write its logfiles?
Thanks for your answer
snap changes
will let you know what changed.
e.g.
alan@gort:~$ snap changes
ID Status Spawn Ready Summary
1289 Done 2017-05-30T08:39:03Z 2017-05-30T08:39:14Z Auto-refresh snap "syncthing"
How do I get the information about updated snap packages?
– Laryllan Jun 01 '17 at 04:25Quite surprisingly, you still can't if the changes were more than something apparently less than 48 hours ago. (In my limited testing, e.g. I had evidence that a snap was updated within the last ~28 hours but snap changes showed nothing.) See https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1695934
So if your goal is to monitor a system for changes, maybe running "snap changes" periodically might catch them. How frequently you have to run it to guarantee you capture the changes I'm not sure.
You could also run "snap list" periodically and save that output which include the version numbers. That seems somewhat more deterministic instead of relying on whatever rules snap uses to (prematurely, IMHO) delete it's change log.
Also "journalctl -ru snapd" might provide some useful information. Maybe, it was not conclusive for me. And this: https://snap.readthedocs.io/en/latest/SNAPD_CONFIGURATION/ suggest you can create a configuration file that would log to /var/log which might be useful. I have no tried that either.