I would like to find all possible reverse dependencies (no need for recursive reverse dependencies) of a certain package p, that is, I want to find all packages which depend on p. This shall include reverse dependencies on p's source package and also reverse build dependencies.If I understand it correctly, there are 4 types of reverse dependencies:r depends on pr depends on source package of pBuilding r requires pBuilding r requires the source package of pI would like to find all of them.For Debian, there is apt-rdepends -r but the manual says  apt-rdepends cannot do reverse build-dependencies.For Ubuntu, there is reverse-depends, which seems to let me do what I want but it seems to be Ubuntu specific, as the manual pages states it is Provided by: ubuntu-dev-tools_0.153_allAre there reverse-depends-like tools which will work for non-Ubuntu distributions, especially those using deb and rpm packages? 
How to get ALL kinds of reverse package dependencies: reverse-depends pendant for non-Ubuntu distributions
debian;package management;rpm;dependencies;deb
In Debian and derivatives there are six types of dependencies:pre-dependsdependsrecommendssuggestsbuild-dependsbuild-depends-indepEach of these give corresponding reverse dependencies. To list them you can use grep-dctrl:grep-dctrl -FBuild-Depends mypackage  -sPackage /var/lib/apt/lists/*Sourceswill list all the packages which build-depend on mypackage, i.e. mypackage's non-recursive reverse build-dependencies.