我运行该命令apt-cache rdepends gnome-session-bin
并得到以下输出:
gnome-session-bin
Reverse Depends:
unity-session
gnome-shell-extensions
gnome-session-flashback
budgie-core
|software-properties-gtk
gdm3
unity-session
gnome-session-flashback
unity-session
unity-session
unity-control-center
session-shortcuts
phosh-core
phosh
openbox-gnome-session
gnome-shell-extensions
gnome-startup-applications
gnome-session
gnome-session
gnome-session
gnome-session
budgie-core
ubuntu-session
ubuntu-session
|software-properties-gtk
nautilus-share
gnome-startup-applications
gnome-startup-applications
gnome-session-common
gnome-session-common
gdm3
我在网上了解到,如果一个包名称前面有一个竖线|
,则意味着该包是一个替代包。而它下面的所有包(直到下一个包,其名称之前有一个竖线),这些都已经是依赖于它的包,而不是我在命令中指定的包。这是真实的?如果是这样,为什么当我运行不带-cache
:的命令时apt rdepends gnome-session-bin
,名称前面有竖线的包被标记为推荐?
gnome-session-bin
Reverse Depends:
Breaks: unity-session (<< 3.37.0-2ubuntu1~)
Depends: gnome-shell-extensions (>= 3.8)
Depends: gnome-session-flashback (>= 3.33.92)
Depends: budgie-core
|Recommends: software-properties-gtk
Depends: gdm3 (>= 3.37.0)
Replaces: unity-session (<< 3.37.0-2ubuntu1~)
Depends: gnome-session-flashback (>= 3.33.92)
Depends: unity-session (>= 42.0-1ubuntu2)
Depends: unity-session (<< 43~)
Recommends: unity-control-center
Depends: session-shortcuts
Depends: phosh-core
Recommends: phosh
Depends: openbox-gnome-session
Depends: gnome-shell-extensions (>= 3.8)
Breaks: gnome-startup-applications (<< 3.28.0-0ubuntu4~)
Replaces: gnome-session (<< 3.37.0-2~)
Breaks: gnome-session (<< 3.37.0-2~)
Depends: gnome-session (>= 42.0-1ubuntu2)
Depends: gnome-session (<< 43~)
Depends: budgie-core
Depends: ubuntu-session (>= 42.0-1ubuntu2)
Depends: ubuntu-session (<< 43~)
|Recommends: software-properties-gtk
Depends: nautilus-share
Replaces: gnome-startup-applications (<< 3.28.0-0ubuntu4~)
Depends: gnome-startup-applications (>= 42.0-1ubuntu2)
Breaks: gnome-session-common (<< 3.37.0-2~)
Replaces: gnome-session-common (<< 3.37.0-2~)
Depends: gdm3 (>= 3.37.0)
推荐和提供是两个不同的东西。
还有一个问题。是否可以使apt-cache rdepends gnome-session-bin
命令的输出具有 Breaks、Recommends、Depends... 标志和版本,就像不带-cache
:的命令一样apt rdepends gnome-session-bin
?