什么是 apt-get 相当于“aptitude 为什么”?

DK *_*ose 14 aptitude apt

这个答案中,我遇到了这个命令:

aptitude why firefox
Run Code Online (Sandbox Code Playgroud)

aptitude why看起来像一个有用的命令,但我不想为此安装 aptitude。什么是apt-get等效aptitude why

Req*_*ist 11

而不是apt-get我会看看apt-cache,虽然不是一对一的,但接近的是:

apt-cache --installed rdepends firefox
Run Code Online (Sandbox Code Playgroud)

  • 正如[此处](http://askubuntu.com/questions/5636/can-i-see-why-a-package-is-installed#comment505140_5637)建议的那样,您可能还想添加许多其他选项;`apt-cache rdepends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances --installed --recurse $package` (2认同)