query the APT cache
--installed Limit the output of depends and rdepends to packages which are currently installed. Configuration Item: APT::Cache::Installed.