Re: Package Dependency Queries
Originally Posted by
professorYaffle
I'm still climbing up the learning curve for apt/dpkg etc.. I'm trying to work out how to find out what packages depend on a given package.
You could use apt-cache for this
To get all the packages that directly depend on a package:
Code:
apt-cache rdepends some_package
The recursively get that data:
Code:
apt-cache rdepends --recurse some_package
To do the reverse (get all the things that some_package depends on), just replace "rdepends" with "depends".
Preferably at the command line; also with the option to scan either just installed packages or all available packages in the currently configured repositories.
The above commands show anything in the repos. To limit it to just installed, just add "--installed" to either command.
Don't try to make something "fast" until you are able to quantify "slow".
Bookmarks