Does Raspberry Pi working with Raspbian make any automatic updates without our permission? If yes, How to disable it?
In fact Raspbian does have daily upgrades enabled by default; to check:
systemctl status apt-daily-upgrade.timer
The bit to play attention to is in the second line of output. Between the two semi-colons it will say
Loaded: loaded (/lib/systemd/system/apt-daily-upgrade.timer; disabled; vendor preset: enabled) ^^^^^^^^
disabled, as it does here. Whether it does anything or not, you can check the time it was last run with:
stat -c %z /var/lib/apt/daily-lock
If it does do something, there should be a record of that in
To disable this:
sudo systemctl mask apt-daily-upgrade sudo systemctl mask apt-daily sudo systemctl disable apt-daily-upgrade.timer sudo systemctl disable apt-daily.timer
The reason for using
mask is to prevent these from being re-enabled by some dependency.
Notice those are two separate services; they both run
/usr/lib/apt/apt.systemd.daily, a shell script, with parameters
It does have that feature available, but it is not enabled by default.