apt 安装比指定为依赖项更多的软件包

use*_*539 12 debian apt latex

我试图texmaker从存储库安装。对于安装,texlive我遵循了此处描述步骤。为此,我使用的控制文件是这个. 它有 texlive-binaries 文件。

然后我尝试texmakerapt. 它的依赖项列为

# apt-cache depends texmaker
texmaker
  Depends: libc6
  Depends: libgcc1
  Depends: libpoppler-qt4-3
  Depends: libqt4-network
  Depends: libqt4-xml
  Depends: libqtcore4
  Depends: libqtgui4
  Depends: libqtwebkit4
  Depends: libstdc++6
  Depends: zlib1g
  Depends: texmaker-data
  Recommends: aspell
  Recommends: ghostscript
  Recommends: netpbm
  Recommends: psutils
    texlive-local
  Recommends: texlive-latex-extra
    texlive-local
 |Recommends: <hunspell-dictionary>
    myspell-fr
    myspell-ru
    hunspell-an
    hunspell-ar
    hunspell-be
    hunspell-da
    hunspell-de-at
    hunspell-de-at-frami
    hunspell-de-ch
    hunspell-de-ch-frami
    hunspell-de-de
    hunspell-de-de-frami
    hunspell-en-ca
    hunspell-en-us
    hunspell-eu-es
    hunspell-fr
    hunspell-gl-es
    hunspell-hu
    hunspell-kk
    hunspell-ko
    hunspell-ne
    hunspell-ro
    hunspell-ru
    hunspell-se
    hunspell-sh
    hunspell-sr
    hunspell-sv-se
    hunspell-uz
    hunspell-vi
    myspell-et
    myspell-lv
    myspell-pl
 |Recommends: <openoffice.org-spellcheck-de-de>
    hunspell-de-de
    myspell-de-de
 |Recommends: <myspell-dictionary>
    myspell-de-de-oldspell
    myspell-fr
    myspell-ru
    hunspell-kk
    myspell-af
    myspell-bg
    myspell-ca
    myspell-cs
    myspell-da
    myspell-de-at
    myspell-de-ch
    myspell-de-de
    myspell-en-au
    myspell-en-gb
    myspell-en-us
    myspell-en-za
    myspell-eo
    myspell-es
    myspell-et
    myspell-fa
    myspell-fi
    myspell-fo
    myspell-fr-gut
    myspell-ga
    myspell-gd
    myspell-gv
    myspell-he
    myspell-hr
    myspell-hu
    myspell-hy
    myspell-it
    myspell-ku
    myspell-lt
    myspell-lv
    myspell-nb
    myspell-nl
    myspell-nn
    myspell-pl
    myspell-pt-br
    myspell-pt-pt
    myspell-sk
    myspell-sl
    myspell-sw
    myspell-th
    myspell-tl
    myspell-uk
  Recommends: hunspell-en-us
  Recommends: asymptote
  Recommends: ibus-qt4
Run Code Online (Sandbox Code Playgroud)

但是当我尝试texmakeraptis安装时显示

# apt-get install texmaker
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  asymptote asymptote-doc ed freeglut3 ibus-qt4 libgraphite3 libibus-qt1
  libptexenc1 libqtwebkit4 libruby1.9.1 libsigsegv2 libyaml-0-2
  python-imaging-tk ruby ruby1.9.1 tex-common texlive-binaries texlive-common
  texmaker-data
Run Code Online (Sandbox Code Playgroud)

为什么会这样?

我安装tex-studiotexworks.

Fah*_*tha 20

正如 Mikel 所说,apt-get默认情况下会引入推荐。另外,请记住依赖项也有依赖项,因此有时您可以通过这种方式获得额外的包。

虽然推荐不是绝对必要的,但有时打包者会包含推荐包,这些包通常是软件正确运行所必需的。之所以推荐一些包(通常是正常运行所必需的)而不是必需的,是因为一些用户可能有不需要这些包的特殊需求,所以这样做是为了让空间有限的人可以稍微保留他们的系统更苗条。这是一个灵活性的考虑。显然,Debian 政策不能完全准确地说明这一点,因此它有点像灰色地带。就个人而言,我让apt-get安装推荐,如果磁盘空间不是问题,那通常更简单,可能更好。但是您的里程可能会有所不同。

这是Debian 政策手册中 关于这种Recommends关系的词

Recommends

    这声明了一个强但不是绝对的依赖。

    Recommends字段应列出除了不寻常的安装之外的所有软件包中都可以找到的软件包。

  • 当它进入图形环境时,它主要是一个灰色区域,因为它们可能会安装一组高级前端,默认情况下安装几乎没有意义,但是,即使那样也不清楚,因为例如,如果您获得基本的 KDE 包,选项虽然它可能会安装更多桌面应用程序,如果未设置,它可能不会让 X 服务器安装其所有 GPU 特定库!(如果没有安装 X) (2认同)