Hi list,
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.
Hi list,
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.
I ask this question because I am worried that some software updates may conflict with each other after running in this way, resulting in system unavailability.
Thank you.
On 22/7/24 05:47, coreyh@free.fr wrote:
Hi list,
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.
I ask this question because I am worried that some software updates
may conflict with each other after running in this way, resulting in
system unavailability.
Thank you.
The perception of safety is subjective, and depends on different aspectsAnother thing to remember, regarding the proposition
and perspectives of the circumstances applicable at any particular time.
One thing to remember, regarding automated upgrades, is that, if an
upgrade involves a kernel upgrade, then you can have a need for
immediate rebooting, which may be problematic.
The imposition of mandatory automated upgrades is one reason that Ubuntu Linux became unstable.
..
Bret Busby
Armadale
West Australia
(UTC+0800)
..............
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.
I ask this question because I am worried that some software updates
may conflict with each other after running in this way, resulting in
system unavailability.
is it safe to run 'apt upgrade' and 'apt update' periodically?
for example put them into crontab.
One thing to remember, regarding automated upgrades, is that, if an upgrade involves a kernel upgrade, then you can have a need for immediate rebooting, which may be problematic.
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.
I run the following from root's crontab:
apt-get -qq -o Acquire::http::Proxy="http://192.168.1.14:3142/"
update && apt-get -qq -d -o Acquire::http::Proxy="http://192.168.1.14:3142/" dist-upgrade && find /var/cache/apt/archives/ -name '*deb'
(That's all on one line.)
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.
On Sun, 21 Jul 2024 18:43:28 -0500
David Wright <deblis@lionunicorn.co.uk> wrote:
I run the following from root's crontab:
apt-get -qq -o Acquire::http::Proxy="http://192.168.1.14:3142/"
update && apt-get -qq -d -o Acquire::http::Proxy="http://192.168.1.14:3142/" dist-upgrade && find /var/cache/apt/archives/ -name '*deb'
(That's all on one line.)
Suggestion: rather than have the "Acquire::http::Proxy="http://192.168.1.14:3142/" in the command, use
the package auto-apt-proxy to detect proxy servers for you.
Suggestion: rather than run it from cron (or a systemd timer), look
into unattended-upgrades.
On 22 Jul 2024 05:47 +0800, from coreyh@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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 151:07:17 |
Calls: | 10,383 |
Files: | 14,054 |
Messages: | 6,417,797 |