Ubuntu – Is there a use case for `apt-get install` without `update`


Every time I see instructions to run apt-get install, it says to run apt-get updatefirst. Same for upgrade and dist-upgrade.

Why doesn't install automatically do update? Is there a case where you don't want that?

Best Answer

  • apt-get update updates the lists of available packages and their version numbers.

    The use case you are searching for could be: If you want to run apt-get install twice in a short time, you only need to run apt-get update once because the package lists are unlikely to have been changed in the meantime.

  • Related Question