apt-cacheにインストールされているパッケージのリストのみを表示させるにはどうすればよいですか?

apt-cacheにインストールされているパッケージのリストのみを表示させるにはどうすればよいですか?

私は次のコマンドを実行しました。

apt-cache rdepends my-package-here

結果には、自分の設定にインストールされていないアプリが含まれます。インストールされたパッケージを見たいです。

ベストアンサー1

~によると適切なキャッシュを使用している人シンボルマーク:

--depends pkg...
depends shows a listing of each dependency a package has and all the possible other packages that can fulfill that dependency.
--rdepends pkg...
rdepends shows a listing of each reverse dependency a package has.
--installed
Limit the output of depends and rdepends to packages which are currently installed. Configuration Item: APT::Cache::Installed.

次のコマンドを使用できます。

apt-cache --installed rdepends my-package-here
my-package-here
  Depends: something
  Depends: something
  Depends: something
  Depends: something
  Depends: something
  Depends: something
  Depends: something

おすすめ記事