aptのパッケージの依存関係を表示する
「fcitx-mozc」が依存しているパッケージを表示する。
$ apt-cache depends fcitx-mozc fcitx-mozc 依存: libabsl20200923 依存: libc6 依存: libprotobuf23 依存: libstdc++6 依存: fcitx-bin 依存: fcitx-data 依存: fcitx-modules 依存: mozc-server mozc-server:i386 依存: fcitx-mozc-data 依存: tegaki-zinnia-japanese 推奨: fcitx 推奨: mozc-utils-gui
逆の依存関係を表示するときは、「rdepends」を使う。
「im-config」に依存しているパッケージを表示する。
$ apt-cache rdepends im-config im-config Reverse Depends: fcitx5 |xsunpinyin uim task-telugu-desktop task-malayalam-desktop task-korean-desktop task-chinese-t-desktop task-chinese-s-desktop scim-pinyin |scim kinput2-common ibus hime gtk3-im-libthai gtk-im-libthai gcin fcitx education-desktop-other