apt full-upgrade или apt-get dist-upgrade


В соответствии с man-страницами:

  • apt имеет параметр full-upgrade
  • apt-get имеет параметр dist-upgrade .

Имеются ли обе команды?

btw: что официально рекомендуется в Ubuntu 16.04? apt или apt-get ?

задан a903user 10.05.2016 в 08:01

1 ответ


apt full-upgrade выполняет ту же функцию, что и 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.
ответ дан schod 10.05.2016 в 08:11