apt-cache(8) --installed
query the APT cache
--installed
    Limit the output of depends and rdepends to packages which are currently installed. Configuration
    Item: APT::Cache::Installed.
source manpages: apt-cache