Isso é de alguma forma o conceito de:
Look before you leap
e pode ser dito como update before install
.
Agora observe que no linux world update
e upgrade
são dois termos diferentes. Para obter um conhecimento curto e doce, consulte estes posts em AskUbuntu , Unix StackEx e < href="https://fossbytes.com/whats-the-difference-between-update-and-upgrade/"> É FOSS .
Agora, a diferença entre os dois pode ser descoberta por man apt-get :
update
Used to re-synchronize the package index files from their sources.
The indexes of available packages are fetched from the location(s)
specified in /etc/apt/sources.list(5).
An update should always be performed before an upgrade or dist-upgrade.
upgrade
Used to install the newest versions of all packages currently installed on the
system from the sources enumerated in /etc/apt/sources.list(5).
Packages currently installed with new versions available are retrieved and
upgraded; under no circumstances are currently installed packages removed,
nor are packages that are not already installed retrieved and installed.
New versions of currently installed packages that cannot be upgraded without
changing the install status of another package will be left at their current
version.
An update must be performed first so that apt-get knows that new versions
of packages are available.
Sugiro que você leia novamente as últimas linhas de ambos os comandos que explicitamente respondem à sua pergunta que é
You get the latest version of a package to install
Além disso, veja esta imagem abaixo (criada por mim) para ter uma visão melhor dela.
Sinta-se à vontade para adicionar mais detalhes.