On 08.07.2026 17:28, Philippe Mathieu-Daudé wrote:
On 8/7/26 11:27, Michael Tokarev wrote:

No, running it again should not be needed.  Unless we change
/etc/apt/sources.list.

The problem we want to address is wrt remote content going out of
sync; we need to run 'apt update' previous to any 'apt' call which
use the remote.

It's definitely not required to be this way.  Running `apt update' once,
when creating containers, is enough.  Any subsequent apt install &Co
will be run "soon enough" to avoid worrying about cache going out of
sync.  Even if meanwhile a new version of some package has been uploaded,
old version is available for some time (usually at least a day).

So no, running `apt update' before every `apt install' and similar
is not necessary.

And sure, you can do it - it's just some wasted time.

Thanks,

/mjt

Reply via email to