Le 19/02/2024 à 18:00, Max Nikulin a écrit :
On 19/02/2024 14:35, Erwan David wrote:
After each boot, the equivalent of apt update is automatically done
in background, through policykit (apt database is locked by
policykitd). So I think there is a timer triggroing this. I'd like to
disable this when my laptop is on expensive link (eg 4G link, or
abroad). So I'd like to disable this timer, but I did not find it. If
someone knws better than me...
Perhaps I missed something since I have no idea why policykit (or
polkit?) is involved.
You may disable apt timers
systemctl disable --now apt-daily.timer apt-daily-upgrade.timer
Perhaps it is possible to write a script that will respect
connection.metered property set by NetworkManager.
Sorry il was packagekit, I made a mistake while writing.
I disable the timers, thanks
I'll have a look at connection.metered