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

Bug#1091472: Please provide an apt.conf option equivalent to -U



On Fri, Dec 27, 2024 at 02:38:07PM +0100, David Kalnischkies wrote:
> Am Fri, Dec 27, 2024 at 02:36:51AM -0800, schrieb Josh Triplett:
> > as if this option were provided. That would allow (for instance) CI
> > systems to make `apt install xyz` Just Work.
> 
> At the expense of just breaking mirrors as there is no cooldown or
> anything that would stop apt from asking the mirror every time even if
> you chain hundreds of install calls together like most people do in CI.

Most CI scripts I've seen write one giant `apt-get install` line, not
one per package to be installed.

> I wonder if you wouldn't be better served by a "if lists/ is empty, call
> update first" rather than a "call it all the time" – to at least trim
> away some of problems this "magic update call" causes.

No, that wouldn't suffice, because the systems I'm working with would
preserve the old lists each time you update. So, it would need to also
update when outdated (e.g. more than N hours old).


Reply to: