2

I ran this command:

apt-cache rdepends my-package-here

The results included apps that I haven't installed in my setup. I only would like to see the packages that have been installed.

2 Answers 2

4

According to apt-cache man the flags:

--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.

You can use this command:

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

if you want to only show the packages installed on your system

Use the following command instead:

apt-rdepends --state-follow=Installed --state-show=Installed package_name

man apt-rdepends

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .