IMHO, in the use case for "apt install", "apt update" should be
considered an implementation detail and the user shouldn't need to call
it directly. "apt install" should just do the right thing. The same
applies to "apt-cache search", etc. It's seems quite tedious and
unnecessary to have to run both commands when starting a container
manually for some quick testing.

There should be a default of some automatic "update" if the cache is
older than some set time, and a default setting of whether failure to
update fails the entire operation. There could be CLI options to
override these defaults (change the time, always update first, never
update, try to update but proceed anyway if that fails, etc).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1429285

Title:
  feature request: apt-get update --if-necessary

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1429285/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to