-1

Possible Duplicate:
How to list package dependees (reverse dependencies)?

I want to find all the packages in the Ubuntu repository that depends on one particular package. In this case I want that dependency to be libqt4-dev, so I can find all the packages developed with Qt. I know I need to use apt-cache, but I'm not sure what the arguments should be.

1 Answers1

1

You should get used to using man. Hence,

$ man apt-cache

reveals

showpkg pkg...

showpkg displays information about the packages listed on the command line. Remaining arguments are package names. The available versions and reverse dependencies of each package listed are listed, as well as forward dependencies for each version. Forward (normal) dependencies are those packages upon which the package in question depends; reverse dependencies are those packages that depend upon the package in question.

Hence the command you are after is apt-cache showpkg libqt4-dev.

Sparhawk
  • 6,969