问题描述
我知道之前已经问过这个问题,但请听我说。所以我想安装screenlets。我跑了sudo apt-get install screenlets
,这就是我得到的:
The following extra packages will be installed:
libart-2.0-2 libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common libgnome2-0 libgnomecanvas2-0
libgnomecanvas2-common libgnomeui-0 libgnomeui-common libtidy-0.99-0 python-beautifulsoup python-evolution
python-feedparser python-gmenu python-gnome2 python-numpy python-pyorbit python-rsvg python-tz python-utidylib
screenlets-pack-basic
Suggested packages:
libbonobo2-bin python-gnome2-doc python-numpy-doc python-numpy-dbg python-nose python-dev gfortran
python-pyorbit-dbg screenlets-pack-all python-dcop
Recommended packages:
python-numeric python-gnome2-extras
The following NEW packages will be installed:
libart-2.0-2 libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common libgnome2-0 libgnomecanvas2-0
libgnomecanvas2-common libgnomeui-0 libgnomeui-common libtidy-0.99-0 python-beautifulsoup python-evolution
python-feedparser python-gmenu python-gnome2 python-numpy python-pyorbit python-rsvg python-tz python-utidylib
screenlets screenlets-pack-basic
0 upgraded, 23 newly installed, 0 to remove and 2 not upgraded.
人们说默认安装了推荐软件包,但它们显然不包含在上面安装的新软件包中。我还决定在安装中包含推荐的软件包,所以我改为运行sudo apt-get --install-suggests install screenlets
,但是我有一个巨大的新软件包列表将被安装;那个数字恰好是0 upgraded, 944 newly installed, 0 to remove and 2 not upgraded
。我不应该只得到大约10个额外的包裹吗?
最佳解决思路
建议和建议不是一回事。
Package A depends on Package B if B absolutely must be installed in order to run A. In some cases, A depends not only on B, but on a version of B. In this case, the version dependency is usually a lower limit, in the sense that A depends on any version of B more recent than some specified version.
Package A recommends Package B, if the package maintainer judges that most users would not want A without also having the functionality provided by B.
Package A suggests Package B if B contains files that are related to (and usually enhance) the functionality of A.
有关详细信息,请参阅The Debian GNU/Linux FAQ。
默认情况下,apt-get
会安装推荐的软件包。
您的选项--install-suggests
会添加建议的包及其建议的依赖项。
--install-suggests
Consider suggested packages as a dependency for installing.
Configuration Item: APT::Install-Suggests.
见apt-get
(8)。
次佳解决思路
我发现为什么我的问题中推荐的软件包没有包含在要安装的软件包中。这是因为存储库中不存在那些推荐的包。我试着安装一个随机包,我选择了sudo apt-get install googleearth-package
。它没有显示推荐的包部分(这意味着它们已经包含在要安装的新包中)。为了确认这一点,我运行了sudo apt-get --no-install-recommends install googleearth-package
,肯定已经推荐了自己的推荐包。至于建议的软件包,我想我不会使用--install-suggests
,因为它只是安装建议的软件包及其建议的软件包。