Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
xi@localhost /usr/src $ equery depgraph gcc | wc -l
872
xi@localhost /usr/src $ equery depends gcc
 * These packages depend on gcc:
app-admin/eselect-python-20100321 (>=sys-devel/gcc-3.4)
sys-devel/llvm-3.0-r2 (>=sys-devel/gcc-3.0)
sys-libs/glibc-2.15-r3 (>=sys-devel/gcc-3.4.4)
                       (arm ? >=sys-devel/gcc-4.1.0)
                       (x86 ? >=sys-devel/gcc-4.3)
                       (amd64 ? >=sys-devel/gcc-4.3)
                       (ppc ? >=sys-devel/gcc-4.1.0)
                       (ppc64 ? >=sys-devel/gcc-4.1.0)
xi@localhost /usr/src $ equery depgraph
Display a direct dependency graph for a given package

xi@localhost /usr/src $ equery depends
List all packages that depend on a atom given query
share|improve this question
    
"depends" - those 2 packages depend on gcc? How few! –  Xsi Nov 13 '12 at 5:08
    
What are direct dependencies? What are indirect dependencies? Direct of gcc - those which depend on gcc (to be dependent - is to require gcc). Indirect of gcc = gcc are dependent of those packages? That is all the difference? –  Xsi Nov 13 '12 at 5:11
    
how to undertand directly and what's the difference . Depgraph indirect - there is a separate option. So it is not strict the difference. May be it's better to say in what purpose do they serve? –  Xsi Nov 14 '12 at 18:26
    
How they are usually used, in what context of thought and mind. This is my first experience with linux I use emerge to install and emerge --unmerge to uninstall. +may be some USE flags USE="" emerge, that's all. I've read a lot. But I don't know the way of thought in general. –  Xsi Nov 14 '12 at 18:29
add comment

1 Answer

equery depgraph <atom> will list you a graph of the dependencies needs to be installed

equery depend <atom> lists all packages that directly need to be installed.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.