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. -- Michael Kjörling 🔗 https://michael.kjorling.se “Remember when, on the Internet, nobody cared that you were a dog?”