DIFFERENCE BETWEEN APT-GET UPDATE AND APT-GET UPGRADE


A frequent question that arises about the commands to use to update Linux servers is the following, what is the difference between apt-get update and apt-get update?

  • apt-get update: updates the list of available packages and their versions, but does not install or upgrade any package. This list is taken from the servers with repositories that we have defined in the sources.list.
  • apt-get upgrade: once the previous command has downloaded the list of available software and its version, we can upgrade those packages using this command: apt-get upgrade. It will install the new versions respecting the software configuration when possible (this is the wonder of this kind of system).

There is also the dist-upgrade.

I leave this little blog post as a reminder that I will send to anyone who asks me again about it.

Tags

Have Any Project in Mind?

If you want to do something in Drupal maybe you can hire me.

Either for consulting, development or maintenance of Drupal websites.