On Mon, Jul 22, 2024 at 04:06:55PM CEST, Michael Kjörling <c9bc136c6...@ewoof.net> said: > On 22 Jul 2024 05:47 +0800, from cor...@free.fr: > > I have been running an old debian 11 for many days. > > is it safe to run 'apt upgrade' and 'apt update' periodically? > > for example put them into crontab. > > `apt update` (and `apt-get update`) will only update the package > database. That should be about as safe as you can get, because it will > have no impact on day-to-day use of the system. > > `apt upgrade`, `apt full-upgrade`, `apt-get dist-upgrade` and other > commands like those _can_ be risky, depending on circumstances. There > might also be legitimate reasons why you don't _want_ to upgrade right > then. > > Several possibilities for automating updates have already been > mentioned in this thread. Another that I haven't seen mentioned yet is > cron-apt; out of the box, it will download updates, send an email, but > _not_ install those updates. For me personally that's a good middle > ground. > > I would encourage you to upgrade to Debian 12, though. 11 is about to > exit mainline support.
I did not see either that there are predefined systemd timers, which just wait for the right configuration to be put in /etc/apt/apt.conf.d Just see /usr/lib/apt/apt.systemd.daily for the apt configurations to use. -- Erwan