我已经检查了man / info页面,但是没有提到输出格式的某些方面 apt-cache depends
man / info页面试图提供帮助(以一种钝的方式);quote:“对于输出的其余部分的特定含义,最好参考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
Depends: libjaxp1.3-java
Depends: libjetty-java
Depends: liblucene2-java
Depends: libservlet2.5-java
Depends: libslf4j-java
Depends: libxml-commons-external-java
Suggests: libmysql-java
|Recommends: solr-tomcat
Recommends: solr-jetty