Is it necessary to run the command sudo apt-get update each time after installing any software/application?

I know the use of this command. I just want to know when to use it.

  • 6
    "After"? Nope. "Before"? Yeah. – edwinksl Jun 16 '16 at 5:02

No, you should run it before installing or upgrading any application (or other package) to ensure that you get the current version.


Before installing software.

sudo apt update updates the list of available packages and their versions, but it does not install or upgrade any packages.

Not the answer you're looking for? Browse other questions tagged or ask your own question.