apt full-upgrade contro apt-get dist-upgrade


In conformità con le pagine man:

  • apt ha parametro full-upgrade
  • apt-get ha parametro dist-upgrade .

Sono entrambi lo stesso comando?

btw: che è ufficialmente il comando raccomandato in Ubuntu 16.04? apt o apt-get ?

posta a903user 10.05.2016 - 10:01

1 risposta


apt full-upgrade svolge la stessa funzione di 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.
risposta data schod 10.05.2016 - 10:11

Leggi altre domande sui tag