[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: minimize daemon downtime for apt upgrade



On Thu, Apr 08, 2021 at 10:46:06AM -0500, Matt Zagrabelny wrote:
> Greetings!
> 
> Scenario:
> 
> I have a Sid desktop computer that acts as a router for my home network.
> 
> If I wait for a few months to perform an "apt upgrade", many packages get
> upgraded.
> 
> The upgrade starts with shutting down isc-dhcp-server (in order to upgrade
> it), then starts to upgrade all the packages, and finally some hours later
> the upgrade starts isc-dhcp-server.
> 
> This is a bit annoying as it DoS'es all the other computers on my network.
> 
> I know I could do:
> 
> apt install isc-dhcp-server
> apt upgrade
> 
> to work around this issue.
> 
> Is there something more elegant? Like a "minimize downtime" for a package
> config file?
> 
> Hand-wavy solution...
> 
> $ cat /etc/apt/apt.conf.d/minimize-downtime
> APT::Minimize-Downtime {
>     bind9
>     apache2
>     isc-dhcp-server
> }
> 
> Does anyone think this idea could be pushed into package metadata?
> 
> Thanks for any help or dialog.
> 
> -m

Dan's already made the point that you might be better running Stable.
You could try reconfiguring to Testing - which at the moment is in 
freeze awaiting release (and removing any packages left from Sid which
will be in advance of testing). Testing will become stable Bullseye
on release. If you want to try this, you could, potentially, change sid
to bullseye throughout - or, actually, just install Bullseye now.

Keep something up to date regularly and there won't be many updates.

All best,

Andy C.


Reply to: