apt upgrade completo versus apt-get dist-upgrade


De acordo com as páginas man:

  • apt tem o parâmetro full-upgrade
  • apt-get tem o parâmetro dist-upgrade .

Ambos são o mesmo comando?

btw: qual é oficialmente o comando recomendado no Ubuntu 16.04? apt ou apt-get ?

por a903user 10.05.2016 / 10:01

1 resposta


apt full-upgrade desempenha a mesma função que apt-get dist-upgrade .

man apt

   full-upgrade (apt-get(8))
       full-upgrade performs the function of upgrade but will remove currently installed packages if this is needed to upgrade the system as a whole.

man apt-get

       dist-upgrade in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages; apt-get has a "smart" conflict resolution system,
       and it will attempt to upgrade the most important packages at the expense of less important ones if necessary. The dist-upgrade command may therefore remove some packages. The
       /etc/apt/sources.list file contains a list of locations from which to retrieve desired package files. See also apt_preferences(5) for a mechanism for overriding the general settings for
       individual packages.
por schod 10.05.2016 / 10:11