apt全升级与apt-get dist-upgrade

按照手册页:

  • apt有参数full-upgrade
  • apt-get有参数dist-upgrade

两个命令都一样吗?

顺便说一句:这是Ubuntu 16.04中正式推荐的命令? apt还是apt-get

apt full-upgrade执行与apt-get dist-upgrade相同的function。

男人

  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. 

男人倾向于

  dist-upgrade 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.