据我了解,rdepends列出了依赖于指定包的包。
例子:
$ apt-cache rdepends abiword
abiword
Reverse Depends:
abiword:i386
xubuntu-desktop
|python-carquinyol-0.96
pkpgcounter
lubuntu-desktop
junior-writing
gnome
|freemind-doc
abiword-plugin-mathview
abiword-plugin-grammar
abiword-dbg
Run Code Online (Sandbox Code Playgroud)
在这个输出中,什么|意思?
根据这个问题,它的意思是 'or' in apt-cache depends,但是这在这里似乎无关紧要(package1 或 package2取决于abiword是不可能的)。
And*_*thy 17
在您给出的示例中,管道|意味着,对于 python-carquinyol-0.96 或 freemind-doc,abiword 不是唯一满足依赖关系的包。
例如,如果您安装了 freemind-doc,abiword或其他东西就可以了。运行apt-cache show freemind-doc可以看到:
Recommends: evince | openoffice.org-writer | abiword | kword | pdf-viewer
Run Code Online (Sandbox Code Playgroud)
这意味着安装这些软件包中的任何一个就足够了。
将其与包 xubuntu-desktop 进行比较,显示时没有|:
Recommends: abiword, abiword-plugin-grammar, ...
Run Code Online (Sandbox Code Playgroud)
这里没有 abiword 的替代品;如果你想安装所有推荐的包,你必须安装 abiword。