Can anyone explain or point me into the right direction to understand when the GNOME Package Updater is getting triggered, by whom, and how often?
As far as I understood, packagekit should be involved here, but there are no cron entries nor systemd timers related to packagekit.
From systemctl status packagekit I see that it is being fired from time to time.
I found old GNOME documentation that talks about configuration options to do a lookup on a daily, weekly, etc basis. No setting is there anymore, though.
I only have the default repos enabled, it’s a fresh install.
The interesting part is that zypper tells me that there are updates/patches available, but GNOME stays silent. If I then manually start GNOME Package Updater, I get the same updates/patches displayed.
But when would GNOME tell me about these updates?
If it checks for updates each hour, wouldn’t I then see this from journalctl -u packagekit leaving an entry about once an hour?
And wouldn’t a resume from suspend during night time force a new check for updates, too?
Strange. Had my laptop running for ~24 hours and watched gnome-software’s dconf check-timestamp value (dconf watch /org/gnome/software/check-timestamp).
No change there (its seconds since epoch value reflects Sep 8 08:48:45 CEST 2020). journalctl -f -u packagekit was also quiet.
My expectation was to see hourly changes.
Packagekit showed first activity this morning (observed via journalctl).
I do not see any signs of hourly lookup for updates or patches (next step: will log network traffic to see if something is going on behind the scenes).
Again, I did a zypper lp and zypper lu and zypper told me that there were updates for kernel and firefox.
Whereas GNOME did not show a notification that updates are available.
Had a look at the source code
There is no hourly update check from gnome-software.
There is however an hourly check which is simply calling check_updates (gs-update-monitor.c) which then confirms the following conditions:
last update check was the previous day (or earlier; checked against dconf /org/gnome/software/check-timestamp), and
current time is past 6am
Only in this case an update check will be performed. So basically, it’s once per day that gnome-software is checking for available updates.
The software update notification (“Software Updates Available”) should then pop up (latest 1 hour after updates have been found).
If one of the updates is security related (marked as such in package meta data) and the user was ignoring the update notification for 1 day or more, the message “Security Updates Pending” is getting displayed.