Hello,
I’m new to snap and I’m sorry if it was already answered somewhere else.
I’m trying to find information about automated refresh that happened in the past on my laptop. For example, I know that firefox snap was updated on September 23rd according to the content of the /snap/firefox
folder:
$ ls -lah /snap/firefox/
total 8.0K
drwxr-xr-x 4 root root 4.0K Sep 29 14:42 .
drwxr-xr-x 14 root root 4.0K Sep 29 17:58 ..
drwxr-xr-x 7 root root 201 Sep 19 22:03 1860
drwxr-xr-x 7 root root 201 Sep 23 19:19 1883
lrwxrwxrwx 1 root root 4 Sep 29 14:42 current -> 1883
However, when I use the changes
command, only one (unrelated) change shows up:
$ sudo snap changes
ID Status Spawn Ready Summary
11 Done today at 20:29 MSK today at 20:30 MSK Auto-refresh snap "gnome-3-38-2004"
($ sudo snap debug state --changes
gives the same output).
I had a look to the state file (/var/lib/snapd/state.json
) and the only included change is indeed the #11:
"changes": {
"11": {
"id": "11",
"kind": "auto-refresh",
"summary": "Auto-refresh snap \"gnome-3-38-2004\"",
...
}
},
I had a look to the snapd
daemon logs but it’s not really useful:
$ sudo journalctl -u snapd | grep firefox | grep -v "snap has no updates available"
Aug 03 19:28:55 ubuntu-laptop snapd[990]: api_snaps.go:317: Installing snap "firefox" revision unset
So I’m wondering if there an regular cleaning of the state file to keep only a few days of changes ? If so, is there any other way to list all the changes (here changes #1 to #10) ?
I’m running the following versions:
$ snap version
snap 2.57.2
snapd 2.57.2
series 16
ubuntu 22.04
kernel 5.15.0-48-generic
Thanks !