LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Knowing which all packages request a particular package as dependency (http://www.linuxquestions.org/questions/debian-26/knowing-which-all-packages-request-a-particular-package-as-dependency-693743/)

kushalkoolwal 12-29-2008 08:56 PM

Knowing which all packages request a particular package as dependency
 
It is easy to know the dependencies of a particular package. For example, we can easily find out that cpp-4.3 (the package to be installed) depends on libc6 as per here.

However there might be other packages which also depends on libc6. Is there any way by which we can find out the packages which requires libc6 as their dependencies? For example, I would like to know what all packages depend on libc6?

Thanks

BugZRevengE 12-30-2008 02:27 AM

apt-cache rdepends packagename

rdepends is reverse of depends :-)

knudfl 12-30-2008 02:56 AM

Please see 'man apt-cache' > > apt-cache depends <package-name>
Revers order of text : apt-cache rdepends ....

And then your question : 'apt-cache whatdepends <package-name>'

> > 'apt-cache whatdepends libc6 > whatdepends-libc.txt'

.... you will get 14000 ? lines, hence the text file !

'libc6' is the system, "everything" depends on that.
....

BugZRevengE 12-30-2008 03:26 AM

ubuntu's apt-cache does not have a whatdepends option... but rdepends does reverse dependancy checking:
Quote:

apt-cache rdepends kate
kate
Reverse Depends:
kdebase-dev
kdebase-dev
kdebase
kate-plugins
kscope
kdissert
ichthux-desktop
kubuntu-desktop
kdebase-dev
kdebase-dev
kdebase
kate-plugins


knudfl 12-31-2008 09:48 AM

.
Sorry, whatdepends is an option in apt-rpm only.

BugZRevengE 12-31-2008 04:34 PM

i thought it was from yum... but that was whatprovides i was thinking of
too many package managers

kushalkoolwal 01-05-2009 09:38 PM

Thank you guys. 'rdepends' just worked fine....


All times are GMT -5. The time now is 07:05 AM.