相关疑难解决方法(0)

在'apt-cache depends' 输出中,Suggests、Recommends、|、<> 的含义是什么?

我检查了 man/info 页面,但没有提到输出格式的某些方面 apt-cache depends

man/info 页面试图提供帮助(以一种迟钝的方式);引用:“对于输出的其余部分的具体含义,最好查阅 apt 源代码”

现在公平地对待信息页面,该引用是关于它已合理解释的“showpkg”选项,但我的选项没有这样的解释......我知道 Linux 信息来自许多来源(不仅仅是 man/info页),而且我并不特别想翻阅源代码(尽管有时我会这样做),所以这里有一个我想知道其含义的示例。

# I can assume what these mean, but... 
#  What does | mean? (probably means 'or'???)
#  What does <pkg> and the following indentations  mean? 
#  At the end, the interaction(?) of Suggest and Recommends puzzles me.

$ apt-cache depends solr-common
solr-common    
  Depends: debconf
 |Depends: openjdk-6-jre-headless
 |Depends: <java5-runtime-headless>
    default-jre-headless
    gcj-4.4-jre-headless
    gcj-jre-headless
    gij-4.3
   openjdk-6-jre-headless
  Depends: <java6-runtime-headless>
    default-jre-headless
    openjdk-6-jre-headless
  Depends: libcommons-codec-java
  Depends: libcommons-csv-java
  Depends: libcommons-fileupload-java
  Depends: libcommons-httpclient-java
  Depends: libcommons-io-java …
Run Code Online (Sandbox Code Playgroud)

apt documentation info manpage apt-cache

21
推荐指数
1
解决办法
5032
查看次数

标签 统计

apt ×1

apt-cache ×1

documentation ×1

info ×1

manpage ×1