On Fri, Dec 27, 2024 at 01:20:18PM +0100, Julian Andres Klode wrote: > On Fri, Dec 27, 2024 at 02:36:51AM -0800, Josh Triplett wrote: > > Package: apt > > Version: 2.9.19 > > Severity: wishlist > > X-Debbugs-Cc: [email protected] > > > > apt-get and apt support a -U option to update before running the > > command. Please consider providing an option in apt.conf to always act > > as if this option were provided. That would allow (for instance) CI > > systems to make `apt install xyz` Just Work. > > > > I would suggest an `Apt::Get::Update` option, with possible values > > "true", "false", and (perhaps in the future) "binaries" (to update only > > binary repos and not source repos). > > This is controllable by the APT::Update option. All command-line options > are just syntactic sugar for apt.conf options. As the feature is experimental, > and not working correctly (it doesn't acquire and hold the locks > throughout but behaves exactly like update&&upgrade), it's not documented.
Ah, that would explain why I couldn't find it, thank you. For my purposes, I'm fine with it behaving exactly like `apt update &&`. > The goal is to fix the locking issue, add a separate stamp file, and > then switch the default to automatically update on missing sources or > if we haven't updated in 7 days. Would it also update if a requested package name or version doesn't exist? If so, that seems like a reasonable default.

