apt-cacheで指定パッケージに依存しているパッケージを探す

ググる

whatdepends コマンドと書かれていることが多い!?

$ apt-cache whatdepends HOGE

こんな感じで。しかーし、これはエラーになってしまう。

$ apt-cache whatdepends HOGE
E: Invalid operation whatdepends

ヘルプを見てみる

$ apt-cache --help | grep 'dependency'
   depends - Show raw dependency information for a package
   rdepends - Show reverse dependency information for a package

rdepends コマンドを使えばいいみたい

$ apt-cache rdepends HOGE
HOGE
Reverse Depends:
   ...
   ...

ちなみに

apt のバージョンは

$ apt-cache --help
apt 0.7.25.3ubuntu9.5 for i386 compiled on May 30 2011 05:38:30

...