“sudo apt-get dist-upgrade” 有什么作用?

“sudo apt-get dist-upgrade” 有什么作用?

我想了解有关此命令的更多信息:

sudo apt-get dist-upgrade

答案1

man apt-get

 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.

答案2

要了解命令,请使用该man命令阅读其手册页(简称“manpage”)。

例如,要了解apt-get,请键入以下命令:

man apt-get

该手册还将包含该dist-upgrade参数的描述:

   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.

要再次退出手册查看器,只需按Q

sudo是必需的,因为该命令需要 root 权限才能执行必要的系统范围操作。

相关内容